Resize layout width for non-desktop devices.