The problem is with government mandates.
Apple and Google already ship OSes with comprehensive APIs and parental controls. There's not even any porn on the iOS App Store by policy.
Creating liability for random OS and app developers is absurd, and foreign porn websites aren't going to comply with this anyway.