Hello there,
If Outlook is unable to connect to the server, it may simply be because your internet connection isn't working. Try a web search on a phone or computer that is connected to the same network. If there is no internet connection, then this is almost certainly the cause of your error.
The Microsoft Support and Recovery Assistant can diagnose and fix several Outlook issues for you, including fixing your Outlook profile. To download and install the Microsoft Support and Recovery Assistant, click download the tool. Once installed, the application will run automatically. https://support.microsoft.com/en-us/office/fix-your-outlook-email-connection-by-repairing-your-profile-4d5febf6-7623-486b-9a9f-d5cfc4264af3
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–