How should a website handle landscape mode on a phone?

A website should remain readable and fully operable when a phone rotates to landscape. The reduced viewport height is often more difficult than the increased width. Fixed headers, cookie banners and bottom actions can consume most of the screen, so test vertical space as carefully as columns.
Let content reflow without forcing a desktop layout just because the width grows. A landscape phone still has a touch interface and limited height. Navigation may need to remain compact, while a card row can gain space if its content fits comfortably.
Avoid locking orientation unless the task genuinely requires it. Users may mount a device in one position or be unable to rotate it. Responsive images, video and forms should work in both orientations, and controls should not move off screen after a rotation.
Use modern viewport units thoughtfully for full-height sections. 100dvh follows the dynamic viewport, while 100svh can provide a stable minimum that accounts for browser UI. Prefer min-height to a rigid height when content may wrap.
Rotate during real tasks, including while a menu or modal is open and while the keyboard is displayed. Confirm focus remains visible and entered data survives. Test safe-area insets on devices with cutouts, especially for fixed controls placed along the new left and right edges. Verify the final behavior across the full width range, including the spaces between preset devices and design breakpoints. Long labels, translated copy and enlarged text often reveal constraints that short demo content does not exercise.