This the code I came up with but cannot find where the problem lies. As the question implies, when rotated, the div becomes vertically scrollable and it is not desirable in my case.
Additionally, I would like that when the browser is not on full screen the content shrinks to adjust only to the text content at least vertically. I would imagine it would happen by default but does not even set the wrapper to height: inherit;
<html>
<head>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
transform: rotate(-90deg);
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div class="wrapper">
<div>
<p>hello how are you</p>
<p>hello whatever here</p>
<p>hello testing this</p>
</div>
</div>
</body>
</html>
Edit: @Brett Donald answer works with a small div like the one I initially posted but not with larger ones.