Live preview of custom code or external embedded items

Would love for this to make it happen, for example
if i want to embed some third party software created form, would love to display instantly
after you press “preview site” or the eye on top left.

Thanks