In this case the ministers know what the problems are. The policy is not new or unique to the UK and it has been done better in Louisiana of all places:
https://reason.com/2024/03/18/pornhub-pulls-out-of-seventh-s...
> The difference is in the details of complying with Louisiana's law. Verifying visitor ages in Louisiana does not require porn sites to directly collect user IDs. Rather, the state's government helped develop a third-party service called LA Wallet, which stores digital driver's licenses and serves as an online age verification credential that affords some privacy.