Another thought, I am using WP Rocket to speed up my site so perhaps that is stripping out the javascript, anyway I will do some testing.
Thanks for responding, much appreciated. I am using the WP Touch mobile plugin which is very popular so I’m surprised this hasn’t come up lots of times. I guess I need to try use a different mobile plugin instead and see if that works, thanks Mark.