The outdoor unit not running while the indoor fan works may involve a capacitor, contactor, or motor issue
https://floridaurgentairconditioning693.quillnesty.com/posts/24-7-hvac-repair-the-most-common-after-hours-ac-problems
The outdoor unit not running while the indoor fan works may involve a capacitor, contactor, or motor issue. Do not open panels yourself; call a qualified technician.