Arul Prasanna,
Thanks for getting back in touch with us.
Does the same thing happen if you connect your iPhone to a 5GHz band? Here are our recommendations to ensure a reliable Wi-Fi connection:
Recommended settings for Wi-Fi routers and access points
Did you also have a chance to complete the steps we’ve advised above? Ensuring that your iPhone is in range of the router, checking for issues with the network, restarting your devices, and resetting the network settings might help.
Additionally, if you notice this same behavior when your AirPods are paired to another device, try resetting them. Here's how:
How to reset your AirPods and AirPods Pro
If each of those steps didn't resolve the issue, let's also be sure your iPhone is fully updated since fixes are included with each update. If an update is available, we suggest having a current backup to iCloud or to a computer, first.
How to back up your iPhone, iPad, and iPod touch
Update your iPhone, iPad, or iPod touch
Have a great rest of your day or evening.