I’ve owned three Rokus, and whenever Roku Not Connecting to Wifi! How To Fix? comes up, the root cause is usually cached network data. Go to Network settings, forget the Wi-Fi network, restart the Roku, then reconnect from scratch. It sounds basic, but it works more often than factory resets and saves a lot of time.