<script> setInterval(function(){ document.getElementById("iframeId").classList.add('your-class') },500); </script> Now you need to write css code with your class name. Thank you