my car engine shakes when i stop at a red light or stop sign but not in neutral on 2002 Nissan Altima

if its in park or neutral; it runs great but in drive or reverse if i stop the engine starts to shake what causes that problem

Asked by for the 2002 Nissan Altima
Possible broken engine mounts . In neutral there is no torque forces the engine to tilt. In reverse or drive your engine foced to tilt backward and forward.
my mounts are new im wondering if its possible that the intake manifold gasket can cause this problem also
It could if it cracked air can go to the exhaust system before O2 sensor and engine gets fails info trough the sensors.