My first guesses are rear derailleur cable adjustment and derailleur hanger alignment.
Get your eyeball lined up directly behind the drivetrain.
Is the top derailleur pulley lining up well with the intended cogs?
(cable adjustment help)
Is the derailleur operating on the same plane as the cogs, or is it canted toward the spokes?
(hanger alignment help)