my a/c sometimes will blow warm for about 3 miles then blow ice cold then after. on 2005 Nissan Pathfinder

this has only happened 4 times in the last month otherwise it works perfectly. The problem seems to happen on the first drive after the vehicle sits for awhile 8 hrs or so.

Asked by for the 2005 Nissan Pathfinder
check expantion valve or fan clutch