Quick answer
Describe one problem → ask AI to inspect → approve one fix → check the result.
This guide is for a static site—ready-made page files—with an original project you can edit using an AI coding assistant. Builder-hosted websites use their own editing controls.
Wrong guide? If the address shows a 404 error, start with our 404 troubleshooting guide.
Step 1: show exactly what is wrong
Open the original project and save a copy or use its saved Git history before editing. Then give your assistant:
- Page: the address or route, such as
/services/. - Problem: “The second card goes off the screen.”
- Screenshot: include the surrounding section; remove private details.
- Width: where it happens, such as 390px.
Ask it to compare desktop, 390px and 320px viewports—the area available for the page. These are sample widths, not every phone.
If it cannot open a preview, ask for browser-specific instructions. Chrome’s device mode can simulate widths; it does not replace checking a real phone.
Step 2: find the cause before editing
Copy this, replacing the bracketed text:
Inspect [page or route] in this project.
Problem: [one visible problem, and the width where it happens].
Find the element and file or style rule causing it.
Explain the smallest fix in plain English.
Preserve existing work. Do not edit or publish yet.
If you cannot reproduce it, tell me what evidence you need.
Look for a concrete explanation: “Two fixed-width columns do not fit.” If the answer is only “I’ll optimize mobile,” ask which element is wrong.
| Symptom | Ask AI to check |
|---|---|
| Cards run off-screen | Column widths; whether cards can stack |
| Image is too wide | Image size and its containing section |
| Text escapes a box | Text wrapping and width limits |
These are possibilities, not diagnoses. Responsive layouts adapt to available space; each symptom still needs inspection.
Step 3: make one small fix
Approve the named fix only. If it changes a shared style rule, ask which other pages could be affected.
Apply only the agreed fix for [problem].
Keep the content, links and overall design.
Preserve unrelated edits and drafts. Do not recreate the project
or upgrade dependencies. Do not hide page overflow, crop content
or shrink text to conceal the problem.
Show the file differences and run the existing build if available.
Check desktop, 390px and 320px. Do not publish.
Check the file list: it should match the proposed fix. Ask about unrelated changes before accepting them.
Our fictional test: two fixed 320px card columns pushed page content to 680px at both narrow widths. A narrow-screen rule stacked the cards and removed horizontal overflow. Text, links and 17px body text stayed intact; desktop card positions and sizes were unchanged.
We tested browser viewports, not physical phones or other layouts. These prompts are instructions to adapt, not a guaranteed repair.
Step 4: check the whole page
Scroll from top to footer at desktop, 390px and 320px. Check:
- Content: no missing text, prices, images or labels.
- Layout: no overlapping text or unintended sideways page scrolling.
- Links: important links open the intended destination.
- Other pages: shared cards or styles still work.
- Build: the existing production build passes.
A wide table can scroll inside its own area; the surrounding page should fit. Do not remove useful content to make it look tidy.
Still wrong? Report the remaining symptom: “The cards stack now, but the contact link is cut off at 320px.” Inspect that element next.
Publish when the fix is ready
A local preview does not update the live site. Review the differences, then follow the safe website update guide. If the live page still looks old, confirm the intended version deployed before rewriting the layout again.
After publishing, check the real page on your phone. Do not change DNS, buy hosting or delete the deployment project to fix a reproduced layout rule.
Technical guidance and fictional browser test checked October 26, 2026.