|
you could use css media queries to show and hide content based on the viewport width. Probably isn't ideal seeing as you'll still have both the normal ads / mobile specific ads technically on page (unless you did a ajax load of the script) thus making it a bit more on the heavy side. But it would accomplish what you are trying to do.
@media screen and (max-width: 400px) { // or whatever you want to target
.mobile-ad {
display:block
}
.desktop-ad {
display:none;
}
}
I didn't test this. But in theory should work.
|