What is the clear and logical way?
The most logical way to measure or to simulate a certain property of a device is to follow the DEFINITION.
And the stability margin is defined based on the LOOP GAIN of a circuit with feedback.
Hence, as I have mentioned before, you should simulate the LOOP GAIN.
Do you know what "loop gain" means and how it is defined - in contrast to closed-loop gain and open-loop gain? (The wording is a bit misleading, I know).
EDIT: got it! I got rid of the mag() function and it displays the magnitude and phase.
AND I didn't disturb the DC operating point. The feedback loop is still there.
I am afraid, you didn´t get it. I cannot see how you are simulating the loop gain.
Question: What is the original circuit to be analyzed and how do you open the loop (you
must open the loop for ac signals!)-