As mentioned, there is a difference between 5G cellular and 5Ghz and 2.4Ghz Wi-Fi networks.
For smart home appliances you are looking at 2.4Ghz Wi-Fi networks, which have nothing to do with your 5G cellular service.
How you change, or if you even need to change between 2.4 and 5GHz will depend on how your wi-fi router is set up.
Yes, many smart appliances will connect to a 2.4Ghz wi-fi networks only and if the wi-fi router separates the 2.4Ghz and 5Ghz networks you won't be able to find and see the appliances while connected to the 5Ghz network.
Many routers merge the networks, so changing how you connect should not be necessarry.
If your router does separate the networks, in most cases you should see two Wi-Fi networks with the same name with the only difference being a 5Ghz or 2.4Ghz label if that is how you configured from your router. Or different names for each network frequency.
We can't specifically tell you how you would do it in your case since we have no way of knowing how your Wi-Fi router is configured.
Here's your previous thread on the matter: Changing Phone from 5G to 2.4G - Apple Community