You'll need a USB on-the-go (USB OTG) cable. Those are easy to come by, but make sure to get a USB C to USB A female cable. The S8 doesn't have a micro-USB port. Something like this should work.
More importantly, you'll likely need an app that can talk with the camera. That is something I'm not sure exists for universal applications. I did a quick search and did see some endoscopes for Android, but they all had the micro-usb connection on the cable. Whether or not one of their apps would work with your device is beyond my knowledge.