Resolving display issue for small screens in safari