Change header's size according to screen size

Hello everyone!

I know that I can change the header’s height by changing the variable “$bar-height: foobar”.

But it changes for all devices and I was wondering if I can specify different headers sizes for different devices

Thanks!