At least Windows a) only does this when on battery power, b) for a valid reason, and c) hides it in the offscreen notification area.
Every time I use Google Search in Edge a prominent pop-up window asks me to switch browsers. It's extremely frustrating!