WiFi keeps going off and on

So this morning around 7:30 AM I was experiencing issues with my Internet. My iPhone kept on going back-and-forth between the Wi-Fi and 5G. It’s not just me, It’s also other devices in my house. I recently came back home after 6 hours and the issue still persists. I restarted the modem and it’s not working. I’m not sure if there’s an outage in my area, unfortunately I can’t access the map through the Xfinity app or website because you need to sign in first and I don’t have the login. My family is in charge of the Internet, that’s why I don’t have it. Other than that any help as to how I can fix this?