Fix the grid column width reset on mobile devices (see #5584)