Problem with iframe height

My Python application generates images using a neural network. When using streamlit applications locally or in the cloud, everything is fine. However, if I insert an iframe on the site, it turns out that the streamlit application has its own scrolling and the site pages have their own scrolling. This creates problems using the application on the site; at the moment when the image is created, the window increases in height. Is there any solution to make the Streamlit application window automatically adjust?

as you can see, the only idea that came to me was to make the window height immediately large, but this is inconvenient, since the site page window is very large.

Hi @sharoz-27

Perhaps you can try to use conditionals to adjust the iframe height to display certain content that requires a large height while assigning a low height value for those that do not.