Glitches
How to fix visual/UI glitches, flickering, wrong styling, and layout breaks.
What Are Glitches?
Glitches are visual problems that do not crash the app but make it look wrong:
- Buttons in the wrong place
- Text overlapping other elements
- Layout breaking on mobile screens
- Content flickering on page load
- Wrong colors or missing styling
- Elements "jumping" around during load
Describing Visual Problems to Claude
Since glitches are visual, you need to describe them precisely:
- What element is affected (button, header, card, form)
- Where it appears on the page
- What it looks like vs. what it should look like
- Screen size — does it happen on desktop, mobile, or both?
Common Glitch Types
Layout Breaks on Mobile
The most common glitch. The app looks fine on desktop but elements overlap, become too small, or break on mobile screens.
Content Flickering
The page briefly shows one thing, then switches to another. This is often caused by loading states or hydration mismatches.
Elements Jumping During Load
Elements shift position as the page loads, causing a jarring experience.
How to Test on Mobile
You do not need a phone — Chrome DevTools can simulate mobile screens:
1. Open Chrome DevTools (F12 or Cmd+Option+I)
2. Click the device toolbar icon (or Ctrl/Cmd + Shift + M)
3. Select a device from the dropdown (e.g., iPhone 14)
4. Reload the page to see the mobile viewCSS and Tailwind Debugging
This project uses Tailwind CSS for styling. Responsive breakpoints use prefixes:
| Prefix | Screen Size |
|---|---|
| (none) | Mobile first (default) |
sm: | 640px and up |
md: | 768px and up |
lg: | 1024px and up |
If something looks wrong on mobile, it is likely missing a responsive class.
Quiz
Your app looks perfect on desktop but the layout breaks on mobile. What is the most likely cause?