How do I test a game on my mobile device?


I've been developing a project and decided to turn it into a mobile game, I was wondering how I can properly test it on my mobile device without publishing it to the app store (I have an iPhone 8 but if I need an android I can borrow one)?