To change your restrictions passcode on an iPhone, you'll need to go into your Settings. Where you go from there depends on your iOS version.
To protect your child from websites you don't want them to visit on an iPhone or iPad, you can easily block them.
Before you enable Downtime, go to Settings > Screen Time > Limit Usage > Always Allowed. From here, choose essential apps ...
Losing access to your iPhone’s Screen Time passcode can be a significant inconvenience, especially when it limits your ability to manage app usage, content restrictions, or device settings.