Hiding Elements on Mobile
Sometimes the best mobile design means showing less. Here's how to control element visibility on different devices.
Why Hide Elements?
Good Reasons to Hide
- Decorative images that clutter mobile
- Secondary navigation
- Complex data tables
- Large background videos
- Duplicate content
Keep Visible
- Primary content
- Main navigation
- Call-to-action buttons
- Essential forms
- Contact information
Using the Show on Mobile Toggle
Some Framekit components have a built-in toggle:
Where to Find It
Components with This Toggle
- Images - Hide decorative images
- Videos - Hide heavy video content
- Grids - Hide complex grid layouts
- Compare Sliders - Hide comparison widgets
Using AI to Hide Elements
For AI components without a built-in toggle:
Hide Specific Elements
``
Hide the background image on mobile
`
`
Don't show the sidebar on mobile devices
`
`
Hide the decorative icons on screens smaller than 768px
`
Show Different Content
`
On mobile, show a simplified version without the statistics section
`
`
Replace the data table with a simple list on mobile
`
Make It Editable
`
Add a toggle in settings to show/hide this section on mobile
`
`
Make the visibility of each element controllable for mobile and desktop separately
`
Strategy: Progressive Disclosure
Instead of hiding completely, consider showing less:
Show Fewer Items
`
Show only the first 3 features on mobile, all 6 on desktop
`
Collapse Content
`
On mobile, collapse the FAQ items by default instead of showing all answers
`
Simplify Navigation
`
Show only the top 4 nav items on mobile, put the rest in a "More" dropdown
``
What to Hide: Examples
Hero Sections
Hide: Background video, secondary CTA button Keep: Main headline, primary CTA, essential imageFeature Sections
Hide: Decorative illustrations, extended descriptions Keep: Feature titles, icons, brief descriptionsTestimonials
Hide: Company logos, long quotes Keep: Short quotes, reviewer namesFooter
Hide: Secondary links, social media widgets Keep: Contact info, primary links, copyrightTesting Hidden Elements
After hiding elements:
Common Mistakes
❌ Hiding Too Much
Don't hide essential content thinking it's "mobile optimization." Users on mobile deserve the full experience.
❌ Hiding Interactive Elements
If desktop users need a button, mobile users probably do too. Don't hide functionality.
❌ Inconsistent Experience
Users switch between devices. Dramatically different content can be confusing.
Best Practice: Mobile-First
Instead of hiding things on mobile, try:
Think: "What can I add for desktop?" not "What should I hide on mobile?"