How to stop checking your exes social media?

I just recently broke up with my ex. About a month ago. And I’m really bad about checking his Instagram, constantly. Even to the point where I’m noticing he’s following all of these accounts that another girl follows probably to seem more likable to her... idk. I know I’m crazy. I have a panic attack every time I check his media. How do you guys stop?? I’ll have moments when I’m better about it, but it doesn’t last long. Please be nice in the comments. Asking for genuine advice.