Disable lightbox on mobile devices

To disable lightbox on mobile devices, please add this code to Custom JS field in Content Views >> Settings page:

/* Disable lightbox on mobile devices */
var cvp_lightbox_disable_on_mobile=function(){PT_CV_PUBLIC.is_mobile&&$(".pt-cv-lightbox, .pt-cv-lightbox-image").removeClass("cvpboxElement").attr("target","_self")};cvp_lightbox_disable_on_mobile(),$("body").on("pt-cv-pagination-finished",function(){cvp_lightbox_disable_on_mobile()});

Best regards,