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.
You can limit screen time on your iPhone using the "Screen Time" feature, which will lock your apps and make them temporarily unusable. Here's how.