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.
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.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results