Most governments don’t care about restricting work unless you are there to take a local’s job.
Also H1-Bs are specific to The US so does not negate my comment about most countries and their attitudes to remote workers. Even if technically not allowed somewhere, no one’s going to start a campaign trying to deport remote tourist workers.
Remote workers pay local consumption tax while not draining value from the local economy.