If you want only to fit the size of the iframe then check this below code in html

HTML


<div id="output" style="width:500px;height:400px;">
<iframe src="www.google.com"...