My Blog template works just fine in desktop version with grids

But in mobile view it shows as below :

I tried different methods like updating below code in the header
<code>
<script type='text/javascript'>//<![CDATA[
var curl = window.location.href;if (curl.indexOf('m=1') != -1) {curl = curl.replace('m=1', 'm=0');window.location.href = curl;}
//]]></script>
</code>
but it is not working, its only change the m=1 to m=0 but not the design or view