When it comes to altering the width (or any other properties) of an element using @media queries, there are multiple approaches available.
One option is to utilize aspect pixel ratio, device width, and height. Find out more at https://developer.mozilla.org/en-US/docs/Web/CSS/@media
Our requirement is to maintain a consistent physical width for the element across different platforms. Whether it's on mobile, desktop, or any DPI settings, the element should appear the same size.
I've experimented with em, vw, and % units without success. Using these resulted in varying physical appearances of the element on different devices - sometimes appearing small, while other times appearing large.
If anyone has suggestions on how we can achieve this consistency, please share your thoughts.