First and foremost stop yelling at her. It doesn't matter if she yells at you, you are the adult, bite your tongue and respond calmly. If it gets out of control on her behalf just say I can see that you are very upset so we can take a break and talk about this in 15 minutes. You are meant to set an example. Shouting is not a good way to communicate with anyone and by doing it is says, this is how we communicate. I grew up in a house where everyone shouted and I thought it was normal. It isn't.
I completely agree with everything @kim204 says. Teens need rules and boundaries and of course they will kick against them. That means she has a phone on the understanding that you monitor it and you control when she has access to it or she doesn't get the phone. If she argues or sulks then she loses the phone for a set period of time. These are all things you will tell her. Phones definitely need to be handed over at night.
Learn to phrase things differently. Rather than your room is a pigsty more how can I help you keep your room tidy? Does she have enough storage? Does she need a sort out? This gives her agency, she feels like she is making decisions not you.
Talk to her like she is another adult. Talk about your teen years, how you felt. I have talked about my childhood and teen years with my children for years. It helps them to see you as a person and not just a parent, and a person who was also a teen at one point.
In our house we had Family Table Talks so anyone including me could bring something to the table. This was anything from the children asking for a later bedtime, to me asking if people could remember to do X. In schools we do positive language, ask for what you want. The best example is if a child is running we say walk please, not don't run. Her world is about to change anyway with her older brother going off to uni.
I would suggest trying to find something to watch together, preferably a tv series so not a one off film. It might be dire for you but if she loves it it gives you something to talk about and connect over. It also gives you opportunity to talk about the characters, their actions and whether they are nice people etc. Helps them frame what a good friendship looks like or what a really shit one looks like too.