How to remove ?m=1 in blogger

URL ?m=1 in CSS terms is called Media Only and Screen which indicates that the URL is being accessed using a mobile device. The purpose of removing the Blogger ?m=1 URL is to reduce the duplication factor of detected content. In short, if you want to remove the URL ?m=1, you can use one of the following methods: Through the Layout Menu Go to the Layout menu Then add a widget/gadget and select HTML/Javascript Copy the following code: <script type=& 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, cl...