What are the rules in your house?
Have they evolved with age?
How long has this deterioration in behaviour been going on?
Is he stressed waiting for GCSE results? Is he worried about going to a new college?
Personally I don’t think that you should be trying to get an almost 17 year old man to bed to sleep.
I don’t think taking phones away is appropriate either as social connection with friends is critical.
You can however cut money, lifts, any chores that you may do for him (meals etc) as consequences for disrespectful behaviours.
Don’t escalate with shouting etc.
Is his Dad about? What’s his contribution?
Is there anything else going on in the home / school etc?
I think all of our kids have really been impacted during Covid at critical development stages / rites of passage that won’t happen for them.
If he is being prevented from going out / staying out with friends in that summer holidays after 18 months of lockdowns then I think that’s harsh.
Let him manage his own time, money, sleep, eating, social life etc - which of your house rules are essential?