Usually, an air conditioner that has frozen is suffering from restricted air flow.  Turn the unit off as soon as you notice a problem and check the filter.  If it’s pristine, you may have accidentally blocked the air return or have a refrigerant leak.  Check your vents before you call a professional out to hunt down a leak.