Device Specific Content - Joomla! Plugin - Logo


Name: Device Specific Content - Version: 3.0.11 / / - Type: Plugin - License: GPLv3
Description: With this plugin HTML content can be delivered device-specifically - Joomla! Extensions Directory

Overview of all downloads of the extension: DSC - Device Specific Content Downloads

With Device Specific Content you can render or not render content specifically for a desktop, tablet or mobile device.

Plugin: DSC - Device Specific Content
Function: Load content depending on the user's devices - Server-side filtering through the User Agent.
Languages: German and English

Take control of the content displayed on your website. Go beyond merely hiding content with CSS breakpoints on your Joomla! website. With the Device Specific Content Pro (DSC) plugin you can render or not render content specifically for a desktop, tablet or mobile device.

Device Specific Content Pro can be used within your content (articles & modules), your template, and third-party extensions (via API calls). For example, you can display an embedded PDF only to desktop visitors and an image to other devices. For instance, you can also use DSC to save mobile visitors data by not rendering your sidebar (code & media files). Best of all, by eliminating (instead of hiding) unused elements, your website will load faster and improves the overall user experience!


  • Optimized, device-specific output of all HTML content
  • Server-side filtering of the content
  • Template style depending on device (PRO)
  • Usage with a simple syntax or via API call (for code)
  • Detection of Mobile (Smartphone), Tablet and Desktop
  • Uses a lightweight detection class (Mobile Detect)
  • Language: German and English


Install DSC with the help of the installer component as usual. Then activate the plugin in Extensions - Plugins - System - Device Specific Content. Not settings required, just use the syntax or the API!

The advantage of the plugin is that the content is already processed on the server and therefore does not need to be transferred to the client entirely. When responsive web design is used, then the HTML content is transferred completely to the browser and then processed by JavaScript and CSS instructions, depending on the resolution of the respective device. Content areas are often hidden (or manipulated), especially on a mobile device. Nevertheless, a lot of unnecessary traffic is generated, for visitors and for the web server. If unnecessary content, such as a sidebar with videos or images, is already filtered out beforehand, then the expensive loading and rendering processes are eliminated, which greatly improves the performance of the website.

Usage / Syntax:

Note: The syntax can be used wherever an HTML output is generated (frontend & backend). For the correct specification of the devices the script Mobile Detect is used. The script is available at GitHub.

Device detection is performed by an evaluation of the User Agent in the HTTP request (lightweight detection class) that categorizes each client as either a Mobile, Tablet, or Desktop device.

Mobile Display - {(!)mobile}...{/mobile}

{mobile}Only display: if Mobile{/mobile}
{!mobile}Only display: if NOT Mobile{/mobile}

Tablet Display - {(!)tablet}...{/tablet}

{tablet}Only display: if Tablet{/tablet}
{!tablet}Only display: if NOT Tablet{/tablet}

Desktop Display - {(!)desktop}...{/desktop}

{desktop}Only display: if Desktop{/desktop}
{!desktop}Only display: if NOT Desktop{/desktop}

API call (in code - for developers)

Mobile - isMobile()

if(PlgSystemDeviceSpecificContent::isMobile()) {...}
if(PlgSystemDeviceSpecificContent::isNotMobile()) {...}

Tablet - isTablet()

if(PlgSystemDeviceSpecificContent::isTablet()) {...}
if(PlgSystemDeviceSpecificContent::isNotTablet()) {...}

Desktop - isDesktop()

if(PlgSystemDeviceSpecificContent::isDesktop()) {...}
if(PlgSystemDeviceSpecificContent::isNotDesktop()) {...}

The detection can also be used if the plugin is disabled. Then the plugin file must be included manually:

if(!JPluginHelper::isEnabled('system', 'devicespecificcontent')) { require_once JPATH_PLUGINS.'/system/devicespecificcontent/devicespecificcontent.php'; }


+ = Added - ! = Removed - ^ = Changed - # = Fixed

Joomla! 4.x

Version - 2023-04-14

Version - 2022-11-20

  • ^ Updated Mobile Detect to version 2.8.41.

Version - 2022-11-08

  • + Added Style depending on device feature. With this option, you may set the template style depending on the device.

Version - 2022-09-15

  • + Added Pro Security Token validation check. The Pro package contains a token file with an individual security token linked to the user account and checked against the validation server for authenticity.
  • ^ Multiple internal code optimisations.

Version - 2022-08-10

  • ^ Updated Mobile Detect to version 2.8.39

Version - 2021-11-11

  • + Added the built-in Download Key Manager support to enter your Pro Update ID without installing the update helper plugin.
    Important: Please copy your personal Pro Update ID using the second copy button in the Pro ID Manager and enter the key in System - Update - Update Sites - Select the entry of the Pro extension and enter the ID into the Download Key field.
  • ^ Code optimisations

Version - 2021-08-27

  • + First Pro release for Joomla! 4.x based on DSC Pro version

Joomla! 3.x

Version - 2021-06-17

  • ^ Maintenance release
  • ^ Changed the version number specification. The first number stands for the supported major Joomla! version. The following three numbers follow the Semantic Versioning Specification (SemVer), as it used to be previously.
  • ^ Code optimisations

Version 3.1.4-PRO - 2021-03-08

  • ^ Updated Mobile Detect to version 2.8.37

Version 3.1.3-PRO - 2021-01-24

  • ^ Updated language files
  • ^ Improved class_exists check for namespaced class Editor

Version 3.1.2-PRO - 2021-01-17

  • ^ Maintenance release
  • ^ Updated custom field
  • ^ Code optimisations

Version 3.1.1-PRO - 2020-01-24

Version 3.0.11 - 2019-06-23

  • + Custom Field - Pro Button
  • ^ Updated Mobile Detect to version 2.8.33
  • ^ Updated project page URL

Version 3.1.0-PRO - 2019-02-17

  • + First Pro release based on DSC version 3.0.10
  • ^ Updated Mobile Detect to version 2.8.33

Version 3.0.10 - 2018-07-23

  • ^ Updated Mobile Detect to version 2.8.32
  • ^ Updated Custom Fields

Version 3.0.9 - 2017-12-27

  • ^ Updated Mobile Detect to version 2.8.30

Version 3.0.8 - 2017-08-31

  • ^ Updated Mobile Detect to version 2.8.26
  • ^ Updated custom field krtitle to 3.3.0

Version 3.0.7 - 2017-08-01

  • ^ Updated Mobile Detect to version 2.8.25
  • ^ Small code optimization

Version 3.0.6 - 2017-01-02

  • + Added helper functions: isNotDesktop, isNotTablet and isNotMobile
  • ^ Updated Mobile Detect to version 2.8.24

Version 3.0.5 - 2016-05-17

  • ^ Updated Mobile Detect to version 2.8.22

Version 3.0.4 - 2016-04-19

  • ^ Updated Mobile Detect to version 2.8.21

Version 3.0.3 - 2016-04-03

  • ^ Updated Mobile Detect to version 2.8.20
  • ^ Updated custom field

Version 3.0.2 - 2015-12-28

  • ^ Updated Mobile Detect to version 2.8.19
  • ^ Updated language files

Version 3.0.1 - 2015-10-12

  • ^ Includes detection script only if detection class is not instantiated yet to avoid a Fatal Error - Thanks to Franz Wohlk├Ânig for reporting it
  • ^ Loads the detection class only if the syntax is used

Version 3.0.0 - 2015-10-10

+ First release for Joomla! 3.x - Many thanks for the detection script Mobile Detect to Serban Ghita (@serbanghita) and also Joe Campbell (@heyjoecampbell) for his inspiration and great input.


Download - free, public versions

Overview of all downloads of the extension: DSC - Device Specific Content Downloads