Fix a bug that was extending viewport in compare mode on mobile devices