🔎 What you'll see
(text looks tiny, or the page scrolls sideways)
🤔 Why it happens
Without a viewport setting in <head>, phones show a shrunk-down desktop page. Fixed widths (like width: 1200px) and wide tables or images also push the page sideways.
🛠️ How to fix it
- Add <meta name="viewport" content="width=device-width, initial-scale=1"> to your <head>.
- Use max-width: 100% and % units instead of fixed px widths.
- Give images max-width:100%; height:auto.
- Wrap wide tables in a box with overflow-x:auto.
🤖 What to ask your AI
Replace the parts in [ ] with your own details, then paste it in.
This page overflows sideways on phones and the text is tiny. Give me the complete code fixed so it looks good on mobile too (responsive). Here's my current code: [code].
Other errors
CORS errorThe browser blocks your page from fetching data from another site404 Not FoundThe address or file can't be foundundefined / Cannot read properties of undefinedReading a property of a value that isn't thereis not definedUsing a name that was never declaredSyntaxErrorBrackets or quotes don't match upExposed API keyYou put a secret key in your code or on GitHubMixed ContentAn https page loads something from an http addressBlank white pageYou deployed it and all you see is a blank screenis not a functionCalling something that isn't a functionUnexpected token < in JSONYou expected JSON but got HTMLCannot use import statement outside a moduleThe browser won't accept your import statementfavicon.ico 404The console shows a 404 for favicon.icoData disappears when I refreshYour to-dos or scores aren't being savedgit push rejectedA "rejected" / non-fast-forward errornpm: command not foundYour terminal says npm or node doesn't existPort 3000 is already in useYour dev server says the port is takenEnvironment variables (.env) aren't loadingYou put your API key in .env but it comes out undefinedThe AI keeps failing to fix the same errorYou ask for a fix and nothing changes