How to hide a specific line of code in Wordpress?

Good day, had to hide a certain part of the code for people who are viewing the site from a mobile phone, how can you implement it?
August 19th 19 at 22:53
2 answers
August 19th 19 at 22:55
For example with the help of conditional tag
<?php if( ! wp_is_mobile() ) { 
// here the code to display on mobile
} ?>


For more fine-tuning can plug in an external script and use it, for example https://github.com/serbanghita/Mobile-Detect
Connected the plugin https://wordpress.org/plugins/wp-mobile-detect/ and the shortcodes don't work with it( or I'm stupid and not properly close it - Tomas.Wilderm commented on August 19th 19 at 22:58
I don't know and don't want to understand, I told you about him did not say anything - Madalyn_Ha commented on August 19th 19 at 23:01
: and this plugin clearly says Compatible up to: 4.2.12 - Madalyn_Ha commented on August 19th 19 at 23:04
August 19th 19 at 22:57
To use in CSS

Find more questions by tags WordPress