I have a 12 V power supply that's not working anymore, so I opened it up and checked for faulty components with a multimeter, and I found two of them so far. One was a 1000 µF 25 V electrolytic which I quickly replaced with a new one, and two was an X2 capacitor with 0.33 µF 275 V rating.
My problem is I don't have an X2 capacitor with that value. All I have is a 0.1 µF 275 V X2. But I do have a 0.33 µF 400 V polyfilm (Mylar) capacitor with me. Can I use that instead of an X2?