How to Make Your AI Coder Fix a UI From a Screenshot
Walk through a practical visual feedback loop: capture the broken screen, give the AI coder the screenshot and the intended behavior, ask it to identify one…

A screenshot can show you that a page feels wrong, but it won’t automatically tell an AI coder what to change. The useful part is the feedback loop: show the current screen, explain what it should do, ask for one specific correction, then preview the result. You don’t need to read the code to guide that process.
1. Capture the problem clearly
Open the app in the state where the issue appears and take a screenshot. Include enough of the screen to show the surrounding layout, not just a tiny crop of the element that looks off. If the problem only happens on a phone, capture the mobile view. If it appears after clicking a button or opening a menu, capture that state too.
Before sending the image, note what you were doing and what you expected to happen. For example: “I opened the pricing page on a phone. The plan cards should stack vertically, but they’re overlapping.” A screenshot provides visual context; your description supplies the intended behavior.
If you’re working in Tevvio, this is the same kind of tight, test-as-you-go workflow that helps when building a project from a prompt, such as a password generator.
2. Tell the AI what the screenshot represents
Be explicit about whether the screenshot shows the broken version or the desired version. Then give the coder the image and a short explanation of the mismatch.
Try a prompt like:
This screenshot shows the current, broken mobile pricing page. The plan cards overlap, and the price is hard to read. I want the cards stacked vertically with clear spacing. Please inspect the relevant UI and identify the single most important visual mismatch to fix first. Don’t make unrelated changes.
That last instruction matters. If you ask for a broad redesign, you may get changes to colors, spacing, typography, and content all at once. Then it’s harder to tell what solved the problem—or created a new one.
For a reference image of the intended design, say so directly:
This screenshot shows the target layout. Please compare the current page with it and identify one concrete difference.
OpenAI’s guidance for building responsive front-end designs similarly emphasizes providing useful visual references and clear instructions, then checking the design in a rendered browser and iterating.
3. Ask for one observable mismatch
A helpful response should describe something you can verify without understanding the implementation:
- “The header is taller than in the reference.”
- “The primary button is below the fold instead of beside the form.”
- “The cards should stack on mobile, but they remain in two columns.”
- “The error message appears, but it doesn’t explain what to do next.”
If the AI replies with a vague plan—“I’ll improve the layout”—ask it to name the first visible change. You can also mark up the screenshot with an arrow or circle and say, “Fix the spacing in this area first.” Keep the request focused on the screen, not on a solution you may not be able to evaluate, such as “rewrite the grid CSS.”
4. Preview before asking for more
Let the coder make the first change, then run the app and open the same page at the same screen size. Capture a fresh screenshot. Compare it with the original and ask: Did the specific mismatch improve? Did anything else become harder to use?
A browser preview makes this check concrete. The Playwright screenshot documentation describes capturing screenshots of pages and elements, a useful way to create consistent before-and-after images.
If the cards now stack but the text is cramped, that’s a new, specific observation. Send the new screenshot and ask for the next correction:
The cards now stack correctly. In this screenshot, the plan descriptions are cramped and the buttons sit too close to the text. Please fix that spacing without changing the card order or colors.
5. Repeat without losing the goal
Work through the visible issues one at a time: layout, readability, alignment, then smaller details. Keep stating what should stay unchanged. If the page has other important states—such as a menu open, a validation message, or a narrow mobile layout—check those separately. A screenshot of one state cannot tell the coder how every interaction should behave, so describe those expectations in words.
This approach is useful beyond a single screen. When you’re validating an early product, visual checks can be one small part of deciding whether the app behaves as intended; Tevvio’s guide on validating a local AI app before buying a GPU applies the same idea of testing before making a bigger commitment.
The key is to treat a screenshot as actionable input, not inspiration. Show the problem, explain the goal, request one concrete mismatch, and inspect the preview. You can steer an AI-built interface through clear visual feedback—even if you never open the code.
Keep Reading

Local AI is drawing fresh attention, but a first MVP doesn’t need a model running on your own hardware. Test whether users actually want the core workflow…

With the Nasdaq erasing its 2026 gains amid an AI sell-off, don’t assume enthusiasm for AI means customers want your app. Before vibe coding, test whether…

AI app costs can rise with every prompt, so a free plan that feels generous may quietly subsidize your heaviest users. Set a clear usage limit, make the paid…