Question: how to change password on phone if forgotten?
Answer: Go to Settings.
Tap [your name] > Password & Security > Change Password.
If you are signed into iCloud and have a passcode enabled, you will be prompted to enter the passcode for your device.
Follow the onscreen steps to update your password.