OP, so sorry you are going through this. I’m a licensed clinical social worker and my first thought was that this may be an underlying mental health issue, combined with some tough circumstances, changing friend group, etc.
Depression can read as irritability and anger, often directed at parents or previously close friends. Also as someone mentioned this could be a sign of other mental health concerns such as borderline personality disorder and the marked fear of abandonment can paradoxically cause someone to lash out at the people they are closest to. She is about the age where some of these symptoms start become more noticeable and cause her a lot more difficulty.
Also possible that there is something she hasn’t disclosed that is making her feel really off balance such as bullying, harassment, or even assault at school, online, or elsewhere. Or new alcohol or substance use.
At any rate, she needs structure and safety and for something to feel predictable and stable. Agree with a previous suggestion to check into DBT. There has been a lot of success with teens in similar situations.
Best of luck to you, OP. There is hope.