How is that a problem?
Just can the folks who are screwing around when they're supposed to be working. The people left over will be the productive ones. And they'll be productive whether at home or in the office (some possibly more so at home).
On that same line of thought, I have to say, though ... I've been marveling for years over how blind managers are to the "messing around" that goes on IN the office.
So I think of the office jobs I've had over the past decade or so - maybe at least 5 different major companies which involved at least some in-office stuff. Among any given block of 10 cubicles, there were several people (at least) who gathered at each other's desks to just chat. And chat, and chat, and chat. And come back later and chat some more. And come back later and chat some more.
People say "well they're building rapport, they're becoming better teammates". Bullsh*t. They're just enjoying each other's company, recreating, having a good time, talking about grandkids the weather and their vacation. It has absolutely no impact on their ability to do their jobs as a team.
Perhaps there is a tiny benefit along those lines, something that probably could have been reached with about 2 minutes of conversation, once a week.
My point is, so that has been totally accepted by all the jobs I've worked at, all my life, once I was no longer at lower-level "timed" stuff that I did when I was a kid. Totally accepted.
Then you work from home, and everyone is all going crazy if they message you and you don't respond for 10 minutes.
It's like........well if the ladies at the office can waste 45 minutes chatting several times a day, I guess I can go in the kitchen and eat a banana, take the dog for a little walk, or whatever else?
The expectation just makes no sense. It almost ended up that remote workers have a HIGHER level of expectation of availability. Whereas when I go in an office, if I pass by someone's cubicle and they're not there at the moment, nobody thinks anything of it. Come back in an hour, see if they're there then - if not, still don't think much of it. Yet work remote and watch someone trying to get ahold of you for 5minutes, they think you're just messing around all day.
At least, it was that way a few years ago - now it's so common people have kind of accepted it and things have equalized in my world