JSFiddle - React, Tailwind, and code Playground

JavaScript

function MakeIframeFullHeight_tt(iframeElement, cycling){
			cycling= cycling || false;
			iframeElement.style.width	= "100%";
			var ifrD = iframeElement.contentDocument || iframeElement.contentWindow.document;
			var mHeight = parseInt( window.getComputedStyle( ifrD.documentElement).height );  // Math.max( ifrD.body.scrollHeight, .. offsetHeight, ....clientHeight,
			var margins = ifrD.body.style.margin + ifrD.body.style.padding + ifrD.documentElement.style.margin + ifrD.documentElement.style.padding;
			if(margins=="") { margins=0;  ifrD.body.style.margin="0px"; }
			(function(){
			   var interval = setInterval(function(){
				if(ifrD.readyState  == 'complete' ){
					setTimeout( function(){ 
						if(!cycling) {  clearInterval(interval);  }
						iframeElement.style.height	= (parseInt(window.getComputedStyle( ifrD.documentElement).height) + margins+1) +"px"; 
					}, 500 );
				} 
			   },500)
			})(); 
		}