In earlier versions of Bootstrap (or with plain CSS), the following HTML code used to result in a fieldset with a visible border, where the legend sat on top:
<fieldset>
<legend>Test</legend>
Welcome!
</fieldset>
Here is how it looked:
https://i.sstatic.net/qVjZC.png
However, when the same HTML is used in Bootstrap 5, the output appears differently:
https://i.sstatic.net/NnP6t.png
Is there a way to override Bootstrap's CSS so that the fieldset once again displays its border with the legend positioned on top?