Microcontroller driver the gate of a mosfet with a pull up resistor to 12V
A suggested way to properly drive your FET is using a circuit like this when you just have a 3.3V GPIO.



Update:

This answer was based upon the information that you originally supplied. You should have provided that schematic from the outset. Based upon that schematic I'll tell you that you need to change approach and use a gate driver like a DGD0215 or DGD0216 instead of that driver you have now. This chip as a 3.3V logic in compatibility with no additional supply rail required. You can then get rid of that 2N7002 completely.

Mouser price listing for the suggested part is the same as that ZXGD3002E6 that you have in your schematic now.