Safari has this setting, but the half dozen times I've tried it, it doesn't work. I suspect you're right that it's because sites just look at the resolution.
Surely you don't mean to block our popups, right?
Surely you didn't mean to block our auto-playing video, right?
Surely you would rather use our lousy app rather than the desktop web site you explicitly requested, right?
etc.