VibeDict

📱Screen shifts sideways on phones (horizontal scroll)

What you'll see
(휴대폰에서 좌우로 흔들리고 오른쪽에 빈 공간이 생김)

One element is wider than the screen, so the whole page shifts and wobbles sideways.

🤔 Why does it happen?

  • An image, table, or box has its width fixed in px (for example, width: 500px)
  • Long English words or addresses don't wrap to the next line
  • 100vw is used, so it overflows by the width of the scrollbar

🔧 Try this

  1. Give images max-width: 100%
  2. Make long text wrap (break-words)
  3. Use the phone view in the developer tools to find which element sticks out

🤖 Ask your AI like this

On phones, the screen shifts sideways and there's empty space on the right. Please find the element that's wider than the screen and fix it. Don't just hide it with overflow-x: hidden on body; fix the cause.

Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.

Related terms

Other errors in this group