goof off

Intermediate (B1) informal

To do nothing and avoid your work when you should be busy.

"He spent the whole morning goofing off on social media instead of finishing his report."