As for actually holding down the button, you can either use an external wired shutter button that has a mechanical lock to hold it down, or you use a wired controller that has an electronic timer, or you use a software feature in the camera to set the bulb timer.
I've taken multi-hour continuous exposures on my iPhone + iPad (both "normal" and "light trail" variants.)
By the looks of [0], you can do at least 90 seconds on the Olympus E-M5 MK II - which is what I have and I'll see if it can do 10 minutes tonight.
[0] https://www.olympuspassion.com/2019/08/26/long-exposures-wit...