Stop rendering custom entity label in view mode
The below function stops a custom entity label from being rendered based on the view mode.

function HOOK_entity_view_alter(&amp;$build, $type) {
  if($type == 'YOUR_ENTITY_TYPE' &amp;&amp; $build['#entity_view_mode']['view_mode'] == 'YOUR_VIEW_MODE'){
    $build['#page'] = TRUE;
  }
}