When I type the code the preview that should appear is not appearing, does anyone know why?
That is most likely because that iframe source isn’t listed in the admin-site settings allowed iframes domains. When the domain isn’t allowed, the iframe shouldn’t show.
allowed iframes