If you do not want to connect your phone to the Wi-Fi automatically, you can click on the right side of the connected Wi-Fi and select Remove the network.
Setting method:
realme UI 5.0 & 4.0: Settings > Wi-Fi, click on the right side of the connected Wi-Fi > Forget
realme UI 3.0 & 2.0 & 1.0: Settings > Wi-Fi, click on the right side of the connected Wi-Fi and click Remove this network to remove the network that does not need to be saved.
realme UI R & Go & S & T & U Edition: Settings > Network & internet > Wi-Fi > Click setting icon of the connected Wi-Fi > Disconnect
Note: After the selected network is removed, the phone will no longer automatically connect to this network and you may need to re-enter the password when connecting again.
Related articles:
How to share Wi-Fi network quickly
How to add hidden Wi-Fi network