Literally never. This topic is one of those things that draws resentful ruleboys out of the woodwork to preach about something they have no firsthand knowledge of because none exists.
Seriously, “ruleboys” is a good one or what I thought of as “hall pass monitor”. I work remotely and have worked remotely from several countries, not once has it been an issue. I just don’t walk up to the customs agent and naïvely say “oh hi, just an FYI that I plan to work remotely for this month from your beautiful country”.
No, I think people are missing the wood for the trees here.
The fact that these visas are becoming available means that governments are wising up to the fact that people have been working remotely on tourist visas and want in on it. They want to be able to charge for it, or set a limit on who can do it, or tax it.
Now that these visas exist, and immigration officers know that, it’s only obvious that they’ll start to ask ‘tourists’ if they plan on working remotely or not. You can lie all you want, but if they find evidence (two laptops, notebooks, equipment) then good luck.
I think you're confusing their goal. It's not that they have a problem with people working remotely on tourist visas, it's that they want them to do it for longer as it brings economic benefit to the country.
If they disliked the idea they wouldn't be creating new visas for the purpose, since that only makes it more prevalent and normalized.