If one feels drowsy during the sermon, one should change one’s place
It is narrated from Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah ﷺ said:
إذا نعس أحدكم يوم الجمعة فليتحول من مجلسه ذلك
“On the day of Friday, when any one of you feels drowsy (in the mosque), he should change his place.”
Reference: صحيح: صحيح ترمذى: 436 , كتاب الصلاة: باب فى من ينعس يوم الجمعة أنه يتحول من مجلسه , صحيح Sunan Abi Dawud: 1025 , Sunan al-Tirmidhi: 526 , Sunan Abi Dawud: 1119
The wisdom in this is that through movement the drowsiness (that is, sleepiness) will go away.
Reference: تحفة الأحوذى: 85/3 , نيل الأوطار: 537/2