Avoiding people with infections may reduce the risk of irritability due to these causes. Many cases cannot be prevented.
If an infection is causing the child's irritability, antibiotics may cure the infection and there are usually no long-term effects. A child with cancer may need lifelong treatment.
Irritability itself is not contagious. If an infection is the cause, the infection may be contagious.