If you mean you want the menu on the right-hand-side of the box, you just need to align the text:
<div class="dropdown text-right">
...
<div class="dropdown-menu dropdown-menu-right" ...
Demo[
^]
Menu Alignment · Dropdowns · Bootstrap v4.5[
^]
If that's not what you mean, then you're going to need to explain in more detail what the problem is.