This is an advanced customization, so I’m afraid I’m not much help. You’d probably do so with a custom plugin or function in a child theme, changing the body class dynamically using Javascript, and letting CSS style the page according to the body class.
Maybe someone with more JS experience can weigh in. Good luck!