How to stay focused and ignore external stimuli?

E.G. I find myself checking my phone constantly. If I get a text message or a friend messages in the group chat, I cant help myself until I open it and be the first responder. I have tried muting the chats but it makes it worse bc then i'm just checking my phone even more to see if anyone has messaged.

Again, i've also tried archiving chats but I still see that (1) or (2) pop up at the top of whatsapp and I cant help my curiosity but check.

more often than not it completely derails my train of thought and distracts me massively. I have ADHD for context.

Any advice? I'm really trying to live in my own lane and focus on myself and find myself getting distracted a lot by what others are doing. To the point that I can ruin my own mood or outlook on things bc i've seen what someone else has said on the matter, or doing with their day etc...There's some conversations I just dont want to be apart but as soon as I get exposed to them, it just sets my mind off into a different direction. it's incredibly frustrating.
I appreciate well thought out subtle trolling.