I tried to recreate what I think you’re doing but I can’t repro this:
It correctly changes mobile, and doesn’t impact desktop.
If I add the this CSS in the editor, it works as expected for desktop:
And for mobile, you only need to set the height for the logo, not for the header:
Hope that helps.

