Here's thean easy way:
Type 1: if your svg only hasMost SVGs have a viewbox, but no width and height, like so:
<svg viewBox="0 0 24 30">30" ...>
ThenAnd you can just specify itseasily control their size in css:
svg {
height: 80px;20px;
}
Type 2: If the svg has width and height, but doesn't have a viewport, like so:
<svg width="810" height="540">
Then you can just manually add a viewbox that's exactly the same as its width and hegith, like so:
<svg width="810" height="540" viewBox="0 0 810 540">
Then you can do the same as type 1.