Edit 2025-01-27: the issue was that I was setting a color-theme on the page ever since I began using the new Bootstrap.
Since using the new bootstrap, the iframe is sometimes showing a white background despite setting the background to transparent.
<iframe style="background: transparent;"…>Solution came from a kind Redditor! I had to also add the following:
color-scheme: normal