How to change view mode of view row using hook_views_pre_render?
I was able to change the view mode in the hook_views_pre_execute() hook. I believe _views_pre_render() is too late.

function custom_module_views_pre_execute(ViewExecutable $view) {
  // Some logic to determine view mode...

  $view-&gt;rowPlugin-&gt;options['view_mode'] = 'list';
}