I have encountered a situation where I need to embed a non-responsive page using an iframe. To display the entire iframe, I adjust the viewport width and scale dynamically through JavaScript. When it is time to close the iframe, I revert the viewport width and scale back to their original values.
Typically, this method works without any issues. However, if the on-screen keyboard pops up (such as when focusing on a text input field) on iOS, the initial-scale setting is ignored. The viewport resize still works, but not the initial-scale adjustment. Interestingly, rotating the device eventually solves the issue and the initial-scale is honored.
My suspicion is that this might be a bug specific to iOS. Any insights or suggestions on how to resolve this would be greatly appreciated.