title: How to hide bootstrap modal in mobile
body: <p>This is the code. Tried to use hidden-xs, but that does not work on modal, get the screen darkened view on mobile. Any help would be appreciated here. Have tried using the hidden-xs, and removing fade, both did not work.</p>
  
  <pre><code> &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Example of Auto Loading Bootstrap Modal on Page Load&lt;/title&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $("#myModal").modal('show');
      });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      TEST
      &lt;div class="hidden-md hidden-xs"&gt;
          This is a test page..1
      &lt;/div&gt;
  &lt;div id="myModal" class="modal fade active"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;×&lt;/button&gt;
                  &lt;h4 class="modal-title"&gt;Subscribe our Newsletter&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;p&gt;Subscribe to our mailing list to get the latest updates straight in your inbox.&lt;/p&gt;
                  &lt;form&gt;
                      &lt;div class="form-group"&gt;
                          &lt;input type="text" class="form-control" placeholder="Name"&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;input type="email" class="form-control" placeholder="Email Address"&gt;
                      &lt;/div&gt;
                      &lt;button type="submit" class="btn btn-primary"&gt;Subscribe&lt;/button&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;                                     
  </code></pre>