I don't know if this was intended to be tongue in cheek, but I started working remotely 6 years ago and found that where I was working had a huge effect on my productivity. It took a while to identify the pattern but I think it is settings that are unfamiliar or, even better, where I feel very out of place. So the first time I go to a cafe, and especially if there aren't a lot of people with laptops there, I do great. If I keep going there for a month and feel really comfortable, then my productivity falls.
I gave up on trying to understand why, and just accepted it.
(That being said, firing up Self Control[0] and a pomodoro timer provide a much bigger boost for me.)
[0]https://selfcontrolapp.com/