Is there a way to change Views base table dynamically?
Just use configs overrides services like described here https://www.drupal.org/docs/8/api/configuration-api/configuration-override-system

Example:

if (in_array('views.view.config.name', $names)) {
  $overrides['views.view.config.name'] = ['base_table' =&gt; 'your_base_table'];
}