I have a page in which I am pushing some javascript using google tag manager. The javascript code has a function which executes on DOM ready and modifies certain elements on the page if it is being accessed from a mobile device. The code works fine when the page directly open in the browser but if we move out from the page by clicking a link and come back again by using the browser back button the page does not get modified that is either the code from the tag manager is not getting push into the page or somehow the code is not executed.
