Embed a View into a render array In Drupal 7, I used the following code implementing views_embed_view in a render array.  

  $view_output = views_embed_view($view_name, $display_id, $uid);

  $page['profile']['bio_mobile'] = array(
    '#type' =&gt; 'markup',
    '#markup' =&gt; $view_output,
    '#prefix' =&gt; '&lt;div class="mobile-display"&gt;',
    '#suffix' =&gt; '&lt;/div&gt;',
  );


How do I do that using Drupal 8?  Although the function is still documented, it return nothing more than just the array I passed in.
Indeed, #markup only allows string, but you can by using a block type

$view_output = views_embed_view($view_name, $display_id, $uid);

$page['profile']['bio_mobile'] = array(
  '#type' =&gt; 'block',
  'content' =&gt; [
    'system_main' =&gt; $view_output,
   ],
  '#prefix' =&gt; '&lt;div class="mobile-display"&gt;',
  '#suffix' =&gt; '&lt;/div&gt;',
);