Is the phone a distraction?
There is an app called “One Sec” that allows you to block apps and websites at scheduled times during the day. I have an iPhone so I do not know if it on Android, but I am sure there is a Android equivalent.
For the computer there is one called “Cold Turkey.