[3.8] Fix #1419 Fix resize issue on mobile view