I think it's a bug. If you are using single sign-on (SSO), It can be solved by adding document.body.classList.remove("profile-desktop"); to the custom SSO javascript:
...
var closeWindow = function() {
samlWindow.close();
if (window.mx.afterLoginAction) {
window.mx.afterLoginAction();
}
};
authPromise.then(closeWindow, closeWindow);
document.body.classList.remove("profile-desktop");
(based on info from Bart Luyten)