Stop removeAttribute from framework

so I have a strange question, I am working with a framework and I am doing some styling of a checkbox basically putting it on the right side instead of the left of a dropdown.

I can make the checkbox appear on the right, but once the user clicks on the checkbox it will flicker fast to the left and then go to the right again and it is quite visible.

The problem seems that the framework is using removeAttribute before applying the check so that is why the user can see the checkbox flickering to the left and then going to the right.

So my question is how can I stop this removeAttribute from the framework, since I don’t have access to this code? Or anyone has any different ideas?