Help formatting CTA button on website header

I created a CTA button for my website header, but I’m running into some problems with formatting. First of all, we need to remove the button from mobile version, and only display it on desktop version. Also the font size is too large and the button is in the wrong position. I’d like to place it next to the “search” icon near the right side of the header. I’d also like the button font size to match the font size of the other text in my header.

This is the code snippet I’m using in my header.liquid file:

Take the quiz

Any help would be greatly appreciated!

Do it