Best practice for writing scss

I am developing an application for online examination which should be run in any size of device with any resolution. Currently I am facing the issue of css in some phones that it looks good in some resolution and bad in other.

Should I have to write different media query for each resolution or any other solution?