The inability of your PS5 to connect online stems from Wi-Fi problems combined with problems in your router and outages affecting the PlayStation Network. The resolution includes router rebooting and PSN status checks together with wired connection testing and PS5 network reset procedures.