Rough idling, Ford Fusion with turbo

I have a 2016 Ford Fusion with turbocharger. It has 75000 miles on it.
It is idling rough. Occasionally it almost dies, then recovers and idles OK for a while.
When under load, it seems to run well. No hesitation that I can detect.
I understand that the valves might be fouled. It has direct injection, not injection outside the cylinder.
I am concerned about what I have heard about cleaning the valves. As I understand it, some valve cleaning solutions raises the temperature of the exhaust high enough that the turbo can be damaged.

Does anyone know how best to safely fix the rough idle problem on these kinds of engines?

Thanks in advance

The first thing I’d do is check carefully for any kind engine vacuum or air intake leak.

thanks. When I have the car checked, I will keep that in mind. My mechanic is careful, not cheap but I will take that trade, and won’t do anything he can’t prove. Unlike my local dealer. The more parts they can through at a problem the better they like it…

Gary_T is correct as usual. Vacuum leak is the #1 probability followed by spark plugs, followed by ignition coil. At least according to this site:

Ford Fusion Rough Idle.

excellent!
thanks for all your help.
I know what to expect when I take the car in to the shop.

I saw a trick for checking vacuum leaks on Roadkill. Using ether starting spray, with the engine idling, spray around the throttle body and attached hoses. If the engine speeds up, you’ve found a vacuum leak.

Just have to be careful spraying that stuff around any hot exhaust pipes etc.