Settings > Network > About should show you what wifi network name and channel it is trying to connect to. If the channel number is less than 36 it is trying to connect to the 2.4 GHz wifi band, and you may be experiencing this:
Your problem may have been caused by an update to your router which affects some Roku models. If you receive this update it changes the router's wifi connection parameters for the 2.4 GHz wifi band from b/g/n to g/n. This has been reported for routers supplied by Comcast/xFinity, Cox, and AT&T, but there may be others.
Affected users report the Roku identifies the local network as available and rates the connection quality, but will not then connect. The fix is to switch the router configuration protocols from the g/n wifi set by the update back to b/g/n. If you don't have access to your router's configuration controls you may have to have your internet provider do it for you.
Thanks to forum user @AvsGunnar for providing the links below to instructions for reconfiguring router settings for the listed internet suppliers. If you can't do this yourself, you may need to contact your internet provider to make these changes for you:
Roku Community Streaming Expert
I am not a Roku employee, only a user like you. Please, no support questions via private message -- post them publicly to the Community where others may benefit as well.
If this post solves your problem please help others find this answer by clicking "Accept as Solution.".
Ultra 4800 | Streaming Stick 4K+ 3821 | TCL Roku TV 43S245/C107X