How to install a router through the phone?
Answer
Yes, you can. You have described your question very briefly. Not much information.
For example, if you do NOT have a smartphone, then most likely you will not be able to configure the router from your phone. But if you have an Android smartphone, or an iOS smartphone, you can configure everything without any problems. Just like from a computer.
To install and configure the router from your phone, it is enough to properly connect the router, turn it on, and from your phone connect to the Wi-Fi network that the router will distribute. It will have a factory name. If the network will be closed, you can see the password (PIN) on the router itself (usually on a sticker). The Wi-Fi network name (SSID) will also be listed there.
When you connect to the router, open any browser and go to the router settings at the address that is indicated on the router itself. This is most likely 192.168.1.1, or 192.168.0.1. On the authorization page you will most likely need to specify a login and password. Usually, it is admin and admin.
When you enter the router settings from your phone, you can change them. Set up Wi-Fi network and Internet connection. Here much depends on the manufacturer and model of the router. As well as from your Internet provider.
Also, almost all router manufacturers have made applications for phones and tablets, through which you can configure and manage the router. TP-Link, for example, has TP-LINK Tether application. ASUS has ASUS Router. You can find and install them in Google Play or App Store.