Here is my code for a refresh button in the header of a Bootstrap 4 card:
<div class="animated fadeIn">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-6 col-sm-4 col-md-2 col-xl mb-3 mb-xl-0">
<button type="button" class="btn btn-success mr-1" data-toggle="modal" (click)="refresh()">
<i class="fa fa-align-justify"></i>
</button>
</div>
</div>
</div>
<div class="card-body">
<!-- other markup -->
</div>
</div> <!-- ./ card -->
</div> <!-- ./ col-lg-12 -->
</div> <!-- ./ row -->
</div> <!-- ./ animated fadeIn -->
However, I am facing an issue where the button remains on the left side both on desktop and mobile view. I need help with making this button stay on the right side at all times, supporting Chrome, Firefox, and Edge.