Plot voltage gain in LTspice while ignoring output DC offset
Since you are working in a simulation why not take the easiest approach. Add a capacitor from the output and connect the other side to a large size resistor that goes to GND. Then take your reading of output AC voltage across the large size resistor.