Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Mailchimp 3.1.5 Minor update available for module mailchimp (3.1.5). Release: Commerce Shipping 3.0.5 Minor update available for module commerce_shipping (3.0.5). Release: GoogleTag Manager 2.0.1 Minor update available for module gtm (2.0.1). Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 100,000 active installs. Release: MCP Sentinel 2.17.0 Minor update available for module mcp_sentinel (2.17.0). Release: Commerce ML Exchange 2.0.1 Minor update available for module cmlexchange (2.0.1). Release: Commerce ML Exchange 2.0.0 Major update available for module cmlexchange (2.0.0). Release: SynImport 2.0.0 Major update available for module synimport (2.0.0). Release: Contact ajax 3.0.0 Major update available for module contact_ajax (3.0.0). Module Revived: Contextual Filter from Referer 1.0.2 Module contextual_filter_referer updated after 22 months of inactivity (1.0.2).

Advanced Block Visibility

63 sites No security coverage Drupal 10–11
View on drupal.org

This module allows you to control block visibility based on the visitor's device type, such as a smartphone, tablet, or desktop. When a block is hidden, it is not sent to the user's device, improving site performance.

This module enables you to show or hide a Drupal block based on the type of device a visitor is using, such as a smartphone, tablet, or laptop.

Features

When a block is set to be hidden, it won’t be rendered or sent to the user’s device. This reduces the site’s load, making it more efficient and lightweight compared to simply hiding a block through your theme.

Post-Installation

After installing the module, navigate to the Block Layout page at https://yoursite.com/admin/structure/block. From there, configure the visibility settings for any block you want to show or hide depending on the device type.

Additional Requirements

This module relies on the mobiledetect/mobiledetectlib library to identify the user’s device type.

Similar projects

The Mobile Detect Block module offers similar functionality, but it is compatible only with Drupal 7 and is no longer maintained.

Depends on

Dependencies of the latest stable release

  • block Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Feb 27, 2025