can you change content of a website for each broswer using media query?

My website looks fine on my firefox browser etc but when i go to like firefox and edge, it looks totally different like the container is shifted up and etc etc. I've been searching about this for at least 1-2 hours and i can't find a solution. I am basically trying to change the content or css of the website based on the browser. Here is my css and rest is in codepen'