DOCUMENTATION

Device-Based Conditions

Hide the admin bar based on device type — mobile, tablet, or desktop — using intelligent user-agent detection.

2 min read    Last updated Feb 26, 2026

Overview

Hide the admin bar based on device type — mobile, tablet, or desktop — using intelligent user-agent detection. This feature is part of the Conditional Visibility category in Hide Admin Bar Pro.

Feature Details

Category Conditional Visibility
Type Admin Bar Control
Plan Pro
Configurable Settings Yes

Prerequisites

  • Hide Admin Bar Pro plugin must be installed and activated.
  • Pro license required for this feature.

How to Configure

  1. Go to your WordPress admin dashboard.
  2. Navigate to Settings > Hide Admin Bar Settings.
  3. Click the Conditional Visibility tab (Pro features appear as separate tabs).
  4. Configure the settings as needed and click Save.
  5. Changes take effect immediately — no page refresh needed for visitors.

How It Works

This feature uses user-agent detection and screen width breakpoints to identify whether a visitor is on a mobile device (< 768px), tablet (768px-1024px), or desktop (> 1024px). You can independently toggle admin bar visibility for each device type. For example, hide it on mobile for a cleaner mobile experience while keeping it visible on desktop.

Benefits

  • Independent visibility control for mobile, tablet, and desktop.
  • Cleaner mobile experience without the admin bar.
  • Accurate device detection using user-agent patterns.
  • Responsive breakpoint-based identification.
  • Perfect for sites where mobile UX is a priority.

Frequently Asked Questions

How do I enable Device-Based Conditions?

Go to Settings > Hide Admin Bar Settings in your WordPress admin and navigate to the appropriate Pro tab.

Can I use this with other visibility conditions?

Yes, all visibility conditions work together. The plugin evaluates conditions in order: global settings, role-based, capability-based, and then Pro conditions (time, URL, device, per-user). If any condition triggers hiding, the admin bar is hidden.

What happens if I accidentally hide the admin bar for administrators?

The plugin provides a secure reset URL on the settings page. You can also access the reset URL directly to restore all settings to their defaults without needing the admin bar.

Need More Help?

Our support team can help with setup, troubleshooting, and best practices.

Contact Support