2009 ford focus rough idle only in warm weather

Last week it got warm outside 80 degree temps and my car idles really rough at 500 RPMsThis week we’ve had a few cool days-50 and 60 degrees outside and now it idles normal 750 rpms. What would cause this and how can it be fixed?

Try having the electronic throttle body cleaned.

Tester