2005 Nissan Altima - Shakes

My car shakes when it’s cold and idling. it doesn’t always happen. When I drive it for a distance it stops shaking and it is back to normal. What is the problem. My mechanic doesn’t know…

The problem is your mechanic. Unless he he is telling you he would have to be paid to diagnose it.