There’s a couple of different ways.
The easy way is : https://www.remove.bg/.
I tried it, it works … most of the time.
The harder (but more flexible) way is to use Photoshop or something similar.
The important thing is that the file ultimately be a .PNG, with a transparent background.