I would talk openly about my worries, what is wrong and the reasons that is wrong, I wouldn't have a particular strategy but just an open and truthful conversation. She likes to use her phone all hours, well let's go online together to look for news about what happened to teens who have behaved like that, it's plenty of even dramatic situations. Then look for good posts about parents, teens and phones rules. You'll find a parental control app is strongly recommended, if she uses apple devices turn on the apple Family Sharing parental control, for android install Family Link, totally free, then block all the inappropriate app, especially those to chat with strangers, activate the option to let new apps installations only after your approval, limit the screen time to maximum 2 hours a day (it's recommended 2 hours including any screen so, excluding screen time for schoolwork, one hour on phone could be enough), block the devices one hour before bedtime and during the night, and occasionally check straight her phone. It's not a punishment, it just a necessity in her best interest.
There are even parental controls that let you supervise more deeply her phone, like alerting you about suspicious words and images, or that let you read all her messages, but those are not free and for what I know they don't work very well, anyway you could do that after the evening block.
I think for teens managing all the online world under peer pressure, hormone changes, desire to grow, is very hard if not impossible, they need much more time to understand all of that, what is useful and what is dangerous, that is the reason a parental control app is a necessity, together with your supervision and support.