Native Device Visibilty
Last updated
Was this helpful?
Last updated
Was this helpful?
The Native Device Visibility feature allows you to control which sections of your Shopify store appear on different mobile platforms. This provides the flexibility to create platform-specific experiences for your iOS and Android users.
Log in to your Shopify admin panel
Go to Online Store > Themes
Click Customize next to your current theme
In the theme editor, locate and click on the App Embeds section
Find and enable the Native Device Visibility block
The Native Device Visibility feature uses specific CSS classes to control section visibility across different platforms:
ios_wrapper: Makes a section visible only on iOS devices
android_wrapper: Makes a section visible only on Android devices
ios_wrapper android_wrapper: Makes a section visible on both iOS and Android devices
No class applied: Section will be visible on all devices (default behavior)
To control the visibility of theme sections:
In the theme editor, select the section you want to modify
Add the appropriate CSS class(es) to the section's custom class field:
Add ios_wrapper
for iOS-only visibility
Add android_wrapper
for Android-only visibility
Add both ios_wrapper android_wrapper
to ensure visibility on mobile apps only
Leave empty for visibility across all platforms
Note: If any native classes such as ios_wrapper
or android_wrapper
are detected, the section will be hidden on the web/desktop mode.
If you're working with custom HTML within your theme:
Display iOS-specific payment options only to Apple users
Show Android-specific navigation instructions only to Android users
Create different layouts optimized for each platform's design guidelines
Display different promotional content based on platform-specific user behaviors
Hide features that may not work properly on specific platforms
Display alternative options when platform limitations exist
To verify your device visibility settings:
Preview your store on different devices or use device simulators
Check that content appears only on the intended platforms
Ensure the user experience remains cohesive regardless of platform
Use Sparingly: Only create platform-specific content when necessary for functionality or user experience
Maintain Consistency: Ensure your brand message remains consistent across all platforms
Test Thoroughly: Verify visibility settings on actual devices when possible
Plan for Updates: Document which sections have platform-specific visibility for easier maintenance
By effectively implementing Native Device Visibility, you can create tailored experiences that take advantage of platform-specific features while maintaining a consistent brand presence across all devices.