Last week I checked my website and found that in the Microsoft Edge browser it was displaying an error message. Here's a screen shot of the error message.

So how do we fix this?
Last week I checked my website and found that in the Microsoft Edge browser it was displaying an error message. Here's a screen shot of the error message.

So how do we fix this?
The thing is my website that is designed in WordPress was displaying normal in all other browsers except for Microsoft Edge. Actually, if I opened an Edge Private Window it displayed just fine there as well. To save you the time of researching this error (took me about 3 hours of searching for ideas) here's the solution.
Turns out that it's usually an addon plugin that had a recent update that causes the problem. In my case I found the culprit to be a popular plugin called Elementor. To figure out which plugin was causing the problem I had to deactivate them one by one and then check my site, then reactivate them until I finally found the problem was Elementor. When I deactivated Elementor my site loaded just fine. The interesting part is that, despite its popularity I never used it anyway. In the end I just deleted it.
After the fact I also discovered by checking my site health in WordPress I also discovered that the version of PhP I was running was old. I updated it to the newest version because it may have been part of the conflict with the Edge browser not displaying my site.
I posted this because earlier this morning I found another site that was displaying the same WordPress error.
Hoping this helps you fix it!