In video is how to do that old way with use of margin. You can also use CSS aspect-ratio
aspect-ratio