I just published a module that does this for D8/9: https://www.drupal.org/project/views_display_switch
I just published a module that does this for D8/9: https://www.drupal.org/project/views_display_switch