1, find a transformer with similar resistance.
2. Find a transformer with similar volume.
3. According to the needs, lead the feet to the original installation holes of the transformer with wires (I drilled holes in the PCB and connected them with metal jumpers).
4. Pay attention to the distance between leads and fix them with glue, including the transformer.