After building a simple webpage with Bootstrap 5, I've run into an issue where the text in the columns overlaps. When the screen is at its full size, everything looks good. But as I start to reduce the size of the screen, the text gets smaller until the columns kick in and correct the issue.
<div class="row">
<div class="col-sm-12 col-lg-4 col-md-5">
<h1 class="display-1">Welcome to this site</h1>
</div>
<div class="col-sm-12 col-lg-8 col-md-7">
<h1 class="display-1">Welcome to this site</h1>
</div>
</div>
https://i.sstatic.net/lIKuh.png
I've tried adjusting the column sizes, but the text still overlaps without resizing first. Any suggestions that might help with this issue?
My expectation was that the text would resize before overlapping when the screen size was reduced.