ac works fine when working but then sometimes it will blow hot air . on 2008 Honda Civic

blows hot air too long before going back too cool.sometimes don't go back too cool air.turn off ac wait a while then blows cool again maybe. could it be high or low pressure switches?or compressor?when it blows cold its great checked temperture its around mid 40s when working right.

Asked by for the 2008 Honda Civic