Phone stuck on CamScanner, can´t do anything. Advice please

Hi,

Came across my first problem today, was using CamScanner, but its locked now, I can´t use the app, I can´t get out of it, I can´t turn the phone off. What is the best thing to do when something like this happens?

Thanks

I have tried holding the power button for over a minute, but won´t turn off.

Regain your privacy! Adopt /e/ the unGoogled mobile OS and online servicesphone

Power and volume down worked for me, was worried in case it affected my e/os, but it seems ok.