You might have to replace your screen or fix a fault on the logic board as it’s quite clear liquid reached inside and damaged the iPhone. Since it’s unknown how much and where liquid reached, it would be better to not use or charge the phone until it will be opened and damage assessed and repaired. As usual, the sooner you can take care of it the better it is, liquid damage can be very tricky and tends to get worse with time.