LogoDOCS
Search documentation...⌘K

Getting Started

Welcome to NativineApp Requirements

Integration Guide

SDK Installation

Native Bridge API

CSS App DetectionClear App CacheApp SharingIn-App ReviewsHaptic Vibration

Core Features

Branding & IdentityApp Icons & SplashPush Notifications

Deployment

Google Play StoreApp Signing Keys
HomeDocsCSS App Detection

CSS App Detection

Hide or show layout components specifically inside the wrapper app.

4 min read
Last updated: June 15, 2026

To prevent app-only functions (like "Clear App Cache" or "Rate App") from displaying on standard desktop or mobile web browsers, Nativine automatically injects a CSS wrapper class to the root HTML tag on startup:

css
/* Hide by default on public desktop/mobile website */
.app-only {
  display: none !important;
}

/* Display only inside Nativine App */
.nativine-app .app-only {
  display: block !important;
}

Simply assign the class name app-only to any elements you wish to restrict to mobile app users.

Was this page helpful?
PreviousSDK InstallationNextClear App Cache