fixed scroll issue on mobile. change the behavior of tag view according to device type