One thing for me that works really well is Pomodoro timer, I do 15 minutes work 5 minutes rest. During work sessions I put my phone in the other room so it’s not distracting me with notifications. After a few flow cycles I just get zoned in and the flow state hits.
If you’re on Mac I really like this app: https://www.flow.app/