There are several alternative lightbox options, but my personal favorite is Fancybox2 (http://fancyapps.com/fancybox/) .
But this method will send large images, which are then reduced to fit the user's screen size. This is a waste of bandwidth, and also does not allow users to enlarge the image with the help of hard, hard settings on their phones.
I would suggest to bypass the lightbox in general for mobile phone users and send them a file with a direct image. For example, the Zappos mobile site does this, for example.
Here is an example that I built using Fancybox2: http://jsfiddle.net/alexroper/5s6dv/
JQuery looks like this. You will need to update the size of the viewport depending on what behavior you want to use for users of phones or even tablets.
$(document).ready(function() { // initialize the lightbox $('.fancybox').fancybox({ beforeLoad: function() { var windowsize = $(window).width(); // test the viewport size to see if it smaller than 480px if (windowsize < 480) { // cancel the lightbox and load the link url $.fancybox.cancel(); } } }); });
source share