If you can get away with not working while working from home, you’re doing great imo
Actual suggestions I’ve seen: create a schedule (at least a start and end time), get dressed as if you were going to work.
In the Safari browser it’s easy to create separate windows for Work and Personal. Keep your personal windows hidden until lunchor after work.
Put your phone in airplane mode if you your work doesn’t require phone calls.
I’ve worked from home since 2010, and the flexibility to do not-work during the day is one of the best things about it, so don’t put in more hours of work than you need to!