Adding fix to pagination issue on mobile devices.