Can we make hugo don't display a partial on mobile?

Hi, I am using an ad for desktop which keeps sticky on desktop screens. I want that partial not to render on mobile devices. I can do it with display:none with css, but the object will be there!

Can I do that? Hope you guys get my point

The display can only be determined at runtime. So you can either load your ad with JavaScript (in which case the script will be in the code always) or use CSS. What’s your worry about “the object being there”?