NRIs can apply for an IPO the same way as an Indian resident individual does. You can apply for an IPO through Upstox using your UPI app only if your bank supports an NRE/NRO account. Here are the steps for how to apply for an IPO.
In case your bank does not support UPI payments on your bank account, you can also apply for IPOs through your bank’s netbanking facility.