Mary7902 Said: " Locked out of iphone passcode. " ------- Troubleshooting a Locked iPhone: Hold it Right There! Being Locked Out... Enter the passcode incorrectly too many times, and you'd likely be locked out for good. So, hold it right there, and refer to this link: If you Forgot the Passcode on your iPhone, or your iPhone is Disabled - Apple Support. It would be the one you've always ...
Also, any data stored in iCloud will remain after resetting the device. If you forgot your iPhone passcode or your iPhone is disabled - Apple Support If it is the Password to your Apple Account, then that can be reset without losing your data or having to reset your phone.
If your device is running iOS 15.2/iPadOS 15.2 or later, AND if you have created a backup to iCloud, you don't need a computer:--> How to reset your iPhone, iPad, or iPod touch when you forgot your passcode - Apple Support Shouldn't be this case (iOS/iPadOS earlier than 15.2), you need a computer.
If your device has iOS 15.2 or later installed, you can reset it without a computer; check out this link→ How to reset your iPhone, iPad, or iPod touch when you forgot your passcode - Apple Support.