The aspect-ratio CSS property allows you to define the desired width-to-height ratio of an element's box.
MDN Reference