iframe not showing on frontend when using a CMB2 field

how do you assign the variable? use something like this?

$variable = esc_html( get_post_meta(get_the_ID(), 'example', true) );

if yes, try removing esc_html()