The touchscreen does not work here. You must use physical buttons:
A hard reset will wipe all data from your device and restore it to the state it was in when you first took it out of the box. This guide will walk you through two proven methods: the standard (for working phones) and the emergency Hardware button method (for frozen or locked phones).
If you have a screen lock (PIN, pattern, or password), enter it now. How to Hard Reset NOKIA 5.4
Press and hold the (right side). Tap Power off . If the screen is frozen: Press and hold the Power button for 15-20 seconds until the screen goes black.
The phone will reboot. The first boot after a hard reset takes longer than usual (up to 5-10 minutes). Do not press any buttons. The touchscreen does not work here
If the phone still lags, crashes, or has battery drain after a full factory reset, the issue is likely (e.g., failing battery, damaged motherboard, or broken screen). Contact Nokia support or visit an authorized repair center.
Scroll down to Wipe data/factory reset and press the Power button to select it. If you have a screen lock (PIN, pattern,
Select and confirm with the Power button.
Scroll down to Factory data reset (or "Yes – delete all user data") and press Power to confirm.