No, unless the law mandates it.

So for example operating system that does not ask this question could simply declare itself "inappropriate"/"illegal" in the jurisdiction.

Say, GrapheneOS can explicitly disallow image downloads from Californian IPs and not sell phones with preinstalled GOS there.

You don't need to be complaint with the Mongolian law to sell in Burkina Faso.

Similarly they don't need to be complaint with Ohio law if they do not operate and have presence there.

American companies that decide to surveil users ont heir websites with pervasive tracking without consent would only contravene the European GDPR if they allowed EU users to use them. Block the EU (famous http/451), and they're in the clear.

IMO, but IANAL.