If your iPhone's touchscreen is not working, try to force-restart the phone. After rebooting it, the screen is likely to work again.
If your Samsung Galaxy S10 is acting strange, here's how to "soft" reset your Galaxy, turning it off and on, or reset it to its factory settings.