SpinTheMic
Pro

Interview practice question

Layout breaks on mobile screens

Frontend Engineering · HTML and CSS · Beginner

Your page looks fine on desktop but breaks on mobile, with horizontal scrolling. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Check viewport meta tag.
  • Find overflowing element (devtools).
  • Fixed widths → max-width, %, flexible units.
  • Images max-width: 100%.
  • Add wrapping, media queries.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics