You will have to do a restore on your phone, follow these instructions.
How to reset your iPhone if you're running iOS 15.2 or later.
How to reset your iPhone, iPad, or iPod touch when you forgot your passcode - Apple Support
If you forgot the passcode on your iPhone, or your iPhone is disabled -