Embed a View into a render array
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;',
);