Give yourself a window to check notifications and doomscroll. It's easier to tell yourself "I can wait another hour until my lunch break when distracting apps are allowed" rather than fighting the urge with no relief in sight.
Personally I have settled on keeping social media and notifications blocked until 2pm. Much easier than wishing and failing to be a productive machine for the entire day.
That's usually what I try to do for personal stuff (with admittedly moderate success).
It's for work stuff that I have a harder time (because of not entirely rational fear of letting people down by being slow to respond).