You can get so easily distracted nowadays...
It's so shocking to see people grab their phone every couple of seconds. People just can't seem to do nothing anymore. And it is a focus killer as well.
As I was doing this too and I hated it that I was doing that, I started a 'digital detox' about a year ago. I removed all unnecessary apps and games and blocked all notifications except for calls. I instructed my loved ones to call me when they have something important since nobody else calls me and the calls show up on my watch, so I can leave my phone out of reach (which is also very useful. Put your phone away in a drawer or out of sight).
Despite the fact that I have made my phone quite boring it does have a browser. And that was my backdoor to distractions. You can open news sites, youtube and also Hive on it. I regularly checked my phone to see if I had new notifications on Hive and if there was news on one of the websites.
In a book I recently read about Intentional living was a nice tip. The author didn't want his kids to become phone addicted, so he always explicitly told why he was checking his phone. This way he needed to have a good reason to pick it up.
Since a few days I also only try to unlock my phone when I really have a good reason to do so. Not because it is a habit or I am bored.
At work I started using https://pomofocus.io/, a pomodoro timer of 25 minutes and 5 minutes pause (sometimes 15). In those 25 minutes I focus on my task and don't check your chats or mails. During the breaks, no screens are allowed (my own rule).
Before the next 25 minutes I quickly check for important chats and once every few 'rounds' I check my mail. This really helped me to become more productive.