there is a solution to solve this but only if you have a homepage opened by a specific deeplink for mobile. In the settings of your deeplink you can change the index page html to index3.html?profile=phone this wil force the app to use this profile.
So if you managed that the SAML module will continue to open the deeplink after login this must be working :) you can do this by setting Deeplink.LoginLocation to /SSO/login?f=true&cont=
Can be solved by adding document.body.classList.remove("profile-desktop"); to the custom SSO javascript code:
...
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)
Mendix let me know that this has been fixed in Mendix 7.22. (info from Connor Land in feedback item 416138)