Hank Greene (science youtuber) has developed (with other people but I don't know them) a new helpful way to gently keep yourself in focus with an app. (Lord knows I need all the help I can get in that department.)
It's called Focus Friend. It's a literal cute lil bean. You set a number of minutes and your little friend (mine is named Beanington Frost) will knit socks for that amount of time. You can use those socks to purchase items to decorate your bean's room. If you interrupt your bean, any progress they've made on their current knitting will unravel and you won't get any socks. It keeps you from getting on your phone when you should be doing something else.
I don't use my phone all that much, but Beanington gives me joy and helps me work in blocks of time I create and take plenty of breaks to move around and shake out my carpal tunnel.