I am showing the login window in a native desktop app on macOS Catalina in a WKWebView with an URL in the following form:
Sometimes the login screen appears with only a pink square a the top:
When I resize the window, or attach the Safari developer debugger the webview resizes and looks ok:
When I set the window width greater than 480 the contents change to the inset login window and the problem goes away.
When I reload the page it randomly changes between broken and ok state.
How can I make sure that the webview looks ok all the time with window size smaller than 480 pixels?
Thanks in advance for your help.