Please add this given script in your wp-admin -> wplms -> footer -> google anaylitics script :
<script> jQuery( 'body' ).delegate( '.ajax-certificate:not(.certificate_image)','click',function(event){ if(jQuery(window).width()<=900 ){ event.preventDefault(); event.stopPropagation(); $.magnificPopup.open({ items: { src: '<div class="white-popup">Please access with Desktop for better quality certificates</div>', type: 'inline' } }); } }); </script>