HTML style.display error

Hi everyone, anyone knows how to fix our issue when disabling the HTML display? it sometimes works, but usually doesn’t at all. we’re using style.display = “none”; to disable it. thanks in advance

@Genesis_Miranda I had noticed that you are using iframe. There has been some questions about this lately and I don’t know if this forum post will be helpful but it may.

Could the issue be the styling?