Could be many things, get a garage that won’t charge you to diagnose the issue to look at the car.
Having owned a couple of automatics, it might be connected with the auto gearbox. When the gearbox fluid is cold, the gear changes occur at higher engine revs – after about 5 minutes (with warmer well-mixed fluid) things settle down.
It could be that the auto gear fluid needs changing (or is low), besides checking the level, the fluid should have a consistency similar to engine oil but with a slight red tinge. Normally the short fluid level check dip-stick is marked with engine hot and cold fill levels.