Custom javascript file not working in mobile browsers
It seems like your code is the problem. You have extra });

Should be

(function ($) {
  Drupal.behaviors.myModuleBehavior = {
    attach: function(context, settings) {
      $(document).ready(function() {
        // code goes here
      });
    }
  };
})(jQuery);


But it is nonsense to use $(document).ready as it is already handled by Drupal.behaviors.

So the proper way is.

(function ($) {
  Drupal.behaviors.myModuleBehavior = {
    attach: function(context, settings) {
      // code goes here
    }
  };
})(jQuery);


The attach() method is called when the DOM has loaded both initially and after any AJAX calls. 

See this doc for more info. https://www.drupal.org/docs/8/api/javascript-api/javascript-api-overview