The best way to make sure a bicycle rim stops wobbling is through using a method called “truing” the wheel. This assumes that the wheel is bent from side to side, not “flat-spotted”.
https://letsfixit.co.uk/wp-content/uploads/2014/04/1.jpg
Step Four
Use the spokes on the one side to pull the rim closer to straight and loosen the other side to allow the rim to be pulled.
https://letsfixit.co.uk/wp-content/uploads/2014/04/4.jpg