How to programmatically embed iframe in a page
Unless you provide an absolute URL, Drupal will treat it as relative. So yahoo.com becomes https://example.com/yahoo.com, which explains why you're seeing your own site embedded.

To solve, just use an absolute URL:

'#context' =&gt; [
  'url' =&gt; 'https://yahoo.com'
]