Sounds like either too much air getting to the engine, or not enough fuel. Have a fuel pressure test done, and check for any vacuum leaks or disconnected / damaged air hoses / components.
RepairPal Certified shops can diagnose and repair your 1998 Ford Mustang. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.