Make a Page Responsive
Turn a desktop-only layout into a mobile-friendly page with proper breakpoints and touch-friendly interactions.
5-10 min|Beginner
BuildQuick WinDeveloper
Prompt Template
Make the following page responsive. Here is the current code: [paste component/page code] Requirements: - Mobile-first approach: default styles for mobile, use lg: (1024px) breakpoint for desktop - Navigation: collapse to a hamburger menu on mobile - Grid layouts: stack vertically on mobile, use [2/3/4] columns on desktop - Touch targets: minimum 44px tap area on mobile - Text: body text 14-16px mobile, can be larger on desktop - Images: full-width on mobile, constrained on desktop - Sidebars: stack below main content on mobile, or use a slide-out drawer Do NOT change the desktop layout. Only add responsive behavior. Do NOT add a CSS framework if Tailwind is already present." **Output format:** The updated component code with responsive classes.
Specifying the exact breakpoint and mobile-first approach prevents the AI from using arbitrary media queries or conflicting responsive strategies.
After building a desktop layout, or when a page looks broken on mobile.