Should I apologise?

I have a fight with my friends today, and it was entirely my fault. What happened was, I was walking with my friend at school during dispersal, I'll call her A, and she was sorta in a bad mood, but she didn't want to talk about it. Our friends came over though, grabbed her away from me, and started asking/pestering her about it. I eventually told them to stop, we can't force her to talk, and that this will just worsen her mood. I said this because, to me that's true. She didn't wanna talk, I don't see how forcing her to talk will fix anything. My three friends just looked at me and rolled their eyes, and one friend started making fun of me. One agreed with me eventually (lets call this girl V), but the last one just dragged A off. I was left behind, like always, and A actually started telling her friend why she was in a bad mood. This solidified my own bad mood. I had always been excluded from things ever since I transferred to this school, and my anger issues were being fed way too much at home, so I get pissed at people way more nowadays. In my anger, I ended up shouting at V, and at another "friend" (she's toxic but my other friends who aren't, like her a lot).

This circulated among other members of our group and now quite a few people are mad at me. I explained the situation and how I feel to A, but still I just want to apologise to V. I have quite a few reasons to be mad at her, but I also have reasons to be nicer to her than I am. But I don't know how to apologise. I'm always the fucking clown who has to show weakness and seem immature and dumb just for others' validation. I'm tired of that role. What should I do? I really value these friendships. Even if they're immature as hell.