While unlikely, it is possible to be stung by a dead jellyfish washed ashore. Here's the science and the safety guidance:
Jellyfish tentacles contain nematocysts—microscopic, spring-loaded stinging cells. After death, these structures don't instantly deactivate. In some species (e.g., Portuguese man o' war, box jellyfish), nematocysts can remain functional for hours to days, especially if the tentacles stay moist. Mechanical stimulation—stepping on, brushing against, or picking up the jellyfish—can still trigger discharge.
Do not touch any beached jellyfish. If stung: rinse with seawater (not freshwater, which can trigger more nematocysts), carefully remove visible tentacles with a tool or gloved hand, and apply heat (hot water ~45°C/113°F) for 20 minutes to denature venom. Seek medical care for severe pain, allergic reactions, or stings from dangerous species. Teach children the "look, don't touch" rule.