Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

CSS Customization Question, altering asset visibility depending on mobile vs desktop

A topic by BirdWorks created Nov 22, 2021 Views: 117
Viewing posts 1 to 1

Hello! Thank you for your time.

With CSS customization activated, I have been trying my hand at customizing my new game's itch.io page (click here for link). As is visible on the page, the game is an embedded game, designed to look like it blends into the rest of the webpage. Currently, this game is designed to be played solely on desktop and not mobile.

Due to it being solely for desktop, I want to see if it is possible to hide the game when viewed on mobile (as it definitely will be unplayable).

Adding on to this, is it possible to set up CSS code to display or hide sections of the webpage dependent on whether the game is being viewed on mobile or desktop? An example of this would be a prompt only appearing on mobile, explaining that the game is only playable on desktop.

This question is similar to this previously existing forum post.

Any insight on this issue would be appreciated.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.