Stop, step back, keep the way out clear
An action that is causing pain or distress can stop. A comfortable distance, without blocked exits or a crowd around the person, matters. Few words, said calmly. Immediate danger means an emergency call. Sudden confusion is urgent medical help even when the person already has dementia.
Listening to the worry
What the person expresses can be acknowledged without confirming facts that are not known. Discomfort or a practical need can be part of the question when it is manageable. Noise, tiredness, pain and unfamiliar surroundings are all possible. A small change, with permission, is an offer they can decline.
If they don't calm down
Respectful communication does not guarantee calm. The agreed contact is there for support, within the role. Restraint and medication are not things to improvise. Afterwards, the words and actions, what helped and what remains unresolved, are the account. A label that conceals the circumstances is a poorer record.