Which law are you talking about by the way?
I was mostly familiar with laws that required porn companies to verify their user's age. That is a lot more targeted and less offensive than UK Online Safety Act Regulations IMO. I mean it's already illegal to distribute porn to minors - that's just requiring them to enforce it at the expense of porn watcher's anonymity. Whereas the UK Online Safety Act is more like a backdoor for content moderation across the internet.