3

If I'm watching my website on my PS4 browser on my TV, the text is very small (probably because the tv is 1920x1080) - but I actually want it to format, as if it was on mobile (filling the whole screen to be readable from my sofa).

Is there a way to check if the website is displayed on a tv-screen?

(It could be through chromecast as well)

LongInt
  • 1,739
  • 2
  • 16
  • 29

1 Answers1

0

You could check for a special user agent in your TV's browser by going to a page like this (http://mybrowserinfo.com/detail.asp).

Then you can use the data-useragent and data-platform attributes to selectively apply CSS (see an example here: https://css-tricks.com/snippets/javascript/add-data-attribute-of-user-agent/).

Rob
  • 11,492
  • 14
  • 59
  • 94