The accordion panel is structured as follows
<p>
<a class="btn btn-primary" data-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
Link with href
</a>
</p>
<div class="collapse" id="collapseExample">
<div class="card card-body">
This is some content.
</div>
</div>
https://i.sstatic.net/hHN6L.png
The display location of the content is beneath the button.
Is there a way to adjust the position of the collapse panel so that it appears on the right side of the button? Refer to the image below for an illustration: