Changing or cleaning air filters to remove blockading debris is one solution to air conditioner icing. However, if you routinely clean your filters and have no debris blocking the airflow, you may need to consider other methods for resolution.
Removing any obstruction to airflow such as curtains, blinds, and furniture is another common solution that will prevent air conditioner freezing. In terms of AC repairs, it is best to leave most practices to qualified HVAC technicians.
A professional HVAC technician will often clean the dirty evaporator coil, replace air filters, clear return vents, inspect the blower motor, or repair fans depending on the culprit of the icing. Ensuring proper airflow is crucial to avoiding icing/freezing. In some cases, technicians find low refrigerant and will fix any leaks before returning refrigerant levels back to normal.