I have an .Rmd file where I would like to adapt the style depending on whether it is a mobile version or not - in css it is quite easy to check the window width with @media;
But then, let's say I have a root variable
--mobile: 1;
How would I be able to use this variable in an R chunk of a .Rmd file, i.e. how could I retrieve this variable?