JSFiddle - React, Tailwind, and code Playground

by Boldright

HTML

<!DOCTYPE html>
<html>
<head>
    <title>Sample</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
</head>
<body>
    <div class="wrapper">
        <iframe src="https://platinumaps.jp/maps/demo" allow="geolocation" style ="border: 0"></iframe>
    </div>
</body>
</html>

CSS

.wrapper {
            width: 100%;
            height: 500px;
        }
        .wrapper iframe {
            border: none;
            width: 100%;
            height: 100%;
        }
        @media screen and (max-width: 480px) {
            .wrapper {
                position: relative;
                height: auto;
            }
            .wrapper::before {
                content: "";
                display: block;
                width: 100%;
                height: 0;
                padding-top: calc(100% / 3 * 4);
            }
            .wrapper iframe {
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
            }
        }