I schedule “Focus Time” sessions in outlook tied to specific things I need to get done. This sets Teams to DND and I get the meeting reminder pop up that guilts me into either continually delaying the reminder or just doing the work. I set each period to a task/topic that needs worked on.
I also leave emails unread until I’ve dealt with them, my anxiety over having unread emails then forces me to do something with them.
It helps that we block pretty much everything in our work laptops and force use of a different browser that’s pretty slow and shitty for all sites that aren’t strictly work related. Combined with having a phone from work for work things means I can just put my personal phone away and not get tempted by it.