Literally the first year of medical school, we were taught to let the patient rest for at least 5 minutes before taking vitals, while also asking about recent exercises or caffeine intake. This reduces the likelihood of a mistake, but white coat hypertension is still a thing. That's why we also teach them/relatives how to correctly measure BP on their own and ask them to measure it at home, preferably after waking up before eating anything.