Dander is constantly shed and replaced while a cat is alive, and its persistence after death depends on several factors:
Ventilation: Well-ventilated spaces clear dander faster.
Cleaning: Regular vacuuming and cleaning help remove dander.
Surface type: Dander may cling to some surfaces longer than others.
Decomposition: As the body breaks down, dander decomposes along with other organic matter.
What you can do: Thoroughly clean areas where the cat spent time, especially furniture, bedding, and resting spots. A vacuum with a HEPA filter is especially helpful. For allergy concerns, professional cleaning may be worthwhile. Even after cleaning, trace amounts might remain, so consult a doctor or allergist if you have sensitivities.