Add class that surrounds all tables (or any other node,field etc...) using preprocess template?
you can override views-view-table.tpl.php template to achieve this.

Like :

&lt;div class="table-responsive"&gt;
&lt;table &lt;?php if ($classes) { print 'class="'. $classes . '" '; } ?&gt;&lt;?php print $attributes; ?&gt;&gt;
   &lt;?php if (!empty($title) || !empty($caption)) : ?&gt;
     &lt;caption&gt;&lt;?php print $caption . $title; ?&gt;&lt;/caption&gt;
  &lt;?php endif; ?&gt;
  &lt;?php if (!empty($header)) : ?&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;?php foreach ($header as $field =&gt; $label): ?&gt;
          &lt;th &lt;?php if ($header_classes[$field]) { print 'class="'. $header_classes[$field] . '" '; } ?&gt;&gt;
            &lt;?php print $label; ?&gt;
          &lt;/th&gt;
        &lt;?php endforeach; ?&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
  &lt;?php endif; ?&gt;
  &lt;tbody&gt;
    &lt;?php foreach ($rows as $row_count =&gt; $row): ?&gt;
      &lt;tr &lt;?php if ($row_classes[$row_count]) { print 'class="' . implode(' ', $row_classes[$row_count]) .'"';  } ?&gt;&gt;
        &lt;?php foreach ($row as $field =&gt; $content): ?&gt;
          &lt;td &lt;?php if ($field_classes[$field][$row_count]) { print 'class="'. $field_classes[$field][$row_count] . '" '; } ?&gt;&lt;?php print drupal_attributes($field_attributes[$field][$row_count]); ?&gt;&gt;
            &lt;?php print $content; ?&gt;
          &lt;/td&gt;
        &lt;?php endforeach; ?&gt;
      &lt;/tr&gt;
    &lt;?php endforeach; ?&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;


Get a look for override views template here

For other tables Override theme_table and change its return statement Like:

return '&lt;div class="table-responsive"&gt;'.$output.'&lt;/div&gt;';