My eldest is 17 after Christmas - I have learned that turning into a screaming, raging lunatic achieves nothing and makes them worse. This is what I now do:
First sign of bad attitude: I silently walk into her bedroom and take her phone charger. I then watch her sweat all day.
2nd offence: I take the phone
3rd offence: I turn the Internet off to all of her devices.
4th offence: I walk into her room - I unplug her TV, console, and PC. I take them along with her phone and charger. I do not rise to her tantrum, I do not answer her. I take her front door key and I ground her.
I then produce a good behaviour chart. Each tick throughout the week and so long as she's earned enough points will gain her one item back at the end of the week. It is working. Less meltdowns, less being rude, better coping mechanisms, she takes a breath and thinks before she speaks.
I am not expecting perfection and she still, naturally has a monumental, teenage kick-off now and again. They are getting less frequent.
The aim is to remain silent. A silent response is the best response. It means you do not stress yourself out to breaking point and your stony silence, removal of luxuries etc shows how serious you are.
Mine even comes back to apologise now - Until the next time she does it.
Pick your battles.