I am testing a page which is giving some users a broken/overflown design while some are getting it right and I cannot figure out why, but I managed to get screen stats for users with broken design, following is screen stats for users who see CSS elements like flex overflown

and following is screen stats for people who see it correctly

What I manage to see s Device Pixel Ratio is different but does it matter and few other things. How can I fix the issue so every user can experience same layout,
Googling for device pixel ratio, I have tried to convert px based to rem.