What is ?m=1 and ?m=0 in Blog Url ?
One of the reasons why you want to remove ?m=1 and ?m=0 when accessed via mobile devices is that I think you are already using a responsive theme on your blog/website.
So that the mobile-only display provided by default is no longer used and to avoid duplicate title tags because there are other parameters that affect blog SEO.
Maybe here there are also those who want to correct incoming Disqus comments because the Disqus system reads parameters from blog pages accessed from ?m=1 and ?m=0. So that will make the difference from Disqus comments that are entered when accessed via ?m=1 can not be read on the desktop and laptop.
To remove that, how to remove the blog URL parameter on mobile devices? Alright, For that please follow these easy steps below.
How to Remove ?m=1 and ?m=0 When URL Accessed Through Mobile Devices?
<script>
//<![CDATA[
var uri = window.location.toString();if (uri.indexOf("?m=1","?m=1") > 0) {var clean_uri = uri.substring(0, uri.indexOf("?m=1"));window.history.replaceState({}, document.title, clean_uri);}
//]]>
</script>