You can achieve that with javascript.
Firstly add hide
class to all your android-devices
divs
And add this code to your css file:
.hide {
display: none;
}
And add this to your javascript file
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1;
if(isAndroid) {
var els = document.querySelectorAll('.android-devices');
els.forEach(function(el) {
el.classList.remove('hide');
})
}
This code will detect android devices and will remove the hide
classes from your divs.
UPDATE:
If you want to hide some divs on android, you can apply same logic.
Just use this line
el.classList.add('hide');
instead of this
el.classList.remove('hide');
And don't add hide
class to your android-devices
divs by default.