Yup. Take it to a reputable independently owned and operated shop.
If it’s a manual tranny, the clutch may be slipping.
If it’s an automatic, it may have a failing torque converter, a failing tranny, or a failing TC lockup clutch… or any related parts.
Or, it could simply be the need for a long overdue spark plug change. If it’s still on the original plugs, they’re due.
And, why the Carfax? Is this a vehicle you’re considering buying? If so, keep looking, and don’t believe Carfax reports. They present themselves as having access to a comprehensive database, but the truth is that none exists. They simply take whatever data is volunteered to them… and I’ve personally begun to believe they make stuff up. When looking one up, they’ll say “19 items reported against this vehicle (or some similar wording). Get the full report for $XX.xx”. They only make their money if you order a full report, so they need to be sure every car has something reported against it.