Am not too sure how to get out of kiosk mode afterwards, maybe test it when you don’t have anything else running just in case.
EDIT: If you need to run kiosk mode for a specific amount of time as you say, you’ll probably need to also run a scheduled cronjob or similar to maybe kill the web browser at a specific time. I’ve seen kiosk mode for a few web browsers but they don’t usually have an option to set them for a specific amount of time.
Most/all the main web browsers in use support kiosk mode, you’ll just need to search around for how to do it. This should get you going for Firefox
https://support.mozilla.org/en-US/kb/firefox-enterprise-kiosk-mode
Am not too sure how to get out of kiosk mode afterwards, maybe test it when you don’t have anything else running just in case.
EDIT: If you need to run kiosk mode for a specific amount of time as you say, you’ll probably need to also run a scheduled cronjob or similar to maybe kill the web browser at a specific time. I’ve seen kiosk mode for a few web browsers but they don’t usually have an option to set them for a specific amount of time.