Definitely had a similar experience When I was still working from home. Working for 30-45 minutes and then play video games, work out, and even just clean the apartment.
A tea timer by your desk is a great way to approach this at work, personally I find 15 - 20 minutes of work 5 minutes of procrastinating is good balance.