It used to work fine but recently goes wrong

First 5~10 mins A/C works iceee cold, then blows warm...lol

had checked someone told me that needs to replace the compressor and dryer
cuz the pressure is to high
is that right??