Coding · Websites

Make Your Web Page Look Good on Phones

Fix a page that looks squashed or too wide on mobile, with changes you can paste in yourself.

Prompt Code output

My web page looks fine on a computer but bad on a phone. The problems I notice on mobile are: [MOBILE_PROBLEMS]. Here is my page code (HTML and CSS): [PAGE_CODE]. Please find what is causing these problems and give me the corrected code. Explain each change in one or two simple sentences, for example why a box overflows or why text is tiny. Point out exactly where each change goes, and only change what is needed so the rest of my design stays the same. Then tell me how to preview the phone view on my own computer using the browser, so I can check the result without a phone.

Fill in the brackets

[MOBILE_PROBLEMS]
e.g. text is very small, I must scroll sideways, the menu overlaps the logo
[PAGE_CODE]
Paste the HTML and CSS of the page, or the part that looks wrong

How to use

  1. Copy the prompt.
  2. Replace the text inside [BRACKETS] with your own details.
  3. Paste it into ChatGPT or another AI assistant.
  4. Read the result and ask for changes if needed.

Tip: Save a copy of your original file before pasting the new code, so you can compare or undo.