Sorry for the delay!
This is hard to guess, but probably it’s some custom CSS. You can try turing the global CSS of temporarily to see if the problem disappears and use browser developer tools to inspect the styles applied to the modal div and the inner iframe.