Bottom half:
This MOSFET pulls down very well. Does not pull up at all. The G-S voltage should be in the 10 to 15V range. 20 absolute max.
The Drain voltage can be very high (if the MOSFET is rated for it). The voltage can be almost anything and is not effected by what the +12V is.
View attachment 95911
The MOSFET turns on when the G to S voltage is more than 3V. (depends on the part).
In this case the gate voltage (compared to ground) goes from 0 to 30V.
So the MOSFET-S will go up to about 27 volts and no more. If the S gets any higher the transistor turns off.
The D could be at 300V but the S is at 27.
This is not the way!
View attachment 95912
This is the way to drive the top side.
Note the 12V battery.
The isolator/driver is connected G-S and applies 0 or 12V on the G-S. It is not referenced or connected to ground in any why.
When on the driver applies 12V from G to S. The D=300, The S=about 300,
The gate is at 312 volts. The battery is connected to S (output).
View attachment 95913