I thought I had solved my problem but now I realize that if I touch the screen to resize it the style tag is removed. I want it removed only when the width goes below 992, and then to be replaced if it's greater than 992?
jQuery:
$(window).resize(function () {
var viewportWidth = $(window).width();
if (viewportWidth > 992) {
$(".container").removeAttr("style");
}
});
Element it alters:
<div class="container" style="width: 240%;">