Hello yolaanda224,
Thanks for reaching out through the Apple Support Communities about those Wi-Fi difficulties with your iPhone.
Does this behavior occur with multiple Wi-Fi networks?
Are you using a VPN or any security apps with your iPhone?
If not, does that still persist after using the Reset Network Settings option? That option will remove the saved Wi-Fi passwords from your iPhone and other iCloud connected devices. So make sure that you have your Wi-Fi password available. You would also have to reconfigure any APN or VPN options you’ve set up previously.
When you are ready, you can complete that process by navigating to Settings > General > Transfer or Reset iPhone > Reset, and then tapping on Reset Network Settings. Your iPhone will restart in order to complete that process.
Hopefully those details and steps will help to further isolate and address this behavior.
Take care.