When you visit a Blogger blog (Blogspot) on mobile, notice the address bar will have the parameter /?M=1. Have you ever thought in your mind to delete this text?
This is not added by theme developers, or anyone else, it is automatically added by Blogger CMS. But it depends on you whether you want to remove it or not.
Remember, removing or not removing this parameter doesn't affect your blog SEO in any condition. But you could remove it only for making a user-friendly blog posts URL.
Here's the code. Go to your Dashboard>Theme>Edit HTML
Copypaste the code below just below the </head> tag.
<script>/*<![CDATA[*/ var uri = window.location.toString(); if (uri.indexOf("%3D","%3D") > 0) { var clean_uri = uri.substring(0, uri.indexOf("%3D")); window.history.replaceState({}, document.title, clean_uri);} var uri = window.location.toString(); if (uri.indexOf("%3D%3D","%3D%3D") > 0) { var clean_uri = uri.substring(0, uri.indexOf("%3D%3D")); window.history.replaceState({}, document.title, clean_uri);} 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); } 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);}; var protocol=window.location.protocol.replace(/\:/g,''); if(protocol=='http'){ var url=window.location.href.replace('http','https'); window.location.replace(url);} /*]]>*/</script>
I hope you have successfully added this code on your blog. Does it work on your blog? Do you like my guide on how to remove ?m=1 from Blogger? Leave a comment, I like to know your thoughts.

