Welcome to Android Central! There's usually no native way to do that (unless you turn on the Stay Awake option in the Developer Options, but the device has to be charging in order for the screen not to sleep). You could try a 3rd party app like Stay Alive!