Full Screen Action Undone by Login/Logout


I created icon with a full screen toggle action in Perspective. It works, but as soon as I do a login/logout action, the browser exists full screen as it loads the idp page or reloads on log out.

This does not happen if the browser was put into full screen using the browser functions (F11). Happens in both Edge and Chrome.

Is there a way around this?