Read the response by @Murph, clearly suggesting you to steer away from rooting as your warranty will be voided.
Stock android has most of the features since Nougat 7.1. There is no need to root android phones anymore. What are you really trying to do by rooting your phone?
Well, I have discovered some reasons I want to root but we won't discuss them here.