Cold a/c went cool than cold again then cool

I was driving today on the interstate and had the a/c cranking like normal. It was colder than the artic then all of a sudden it went cool, then a little warmer. When I exited the interstate and stopped at the first light, it went ice cold again, and went cool to cold and so on.