LG ThinQ or the LG remote app is not connecting to the TV
Updated:
LG TVs with webOS accept phones over Wi-Fi, but a setting, a rejected prompt or the router can block them. These steps solve most cases, in order.
Steps
Turn the TV on and use the same Wi-Fi
The first connection needs the TV fully on, not in standby. Check the network on the TV in Settings › Network and compare it with your phone. Guest networks and VPNs hide the TV.
Accept the prompt on the TV
When a new app connects, the TV shows a message asking to allow it. If you miss it or reject it, close the app, open it again and choose the TV: the prompt comes back. You have about 30 seconds.
Enable LG Connect Apps
On some webOS versions, phones can only connect if LG Connect Apps is on. Look for it in Settings › Network or Settings › General › Devices, depending on the year.
Allow turning on from the phone
To turn the TV on from the phone later, enable Turn on via Wi-Fi or TV On With Mobile, in Settings › General › Devices › External Devices on recent models.
Check the router and restart
Turn off AP isolation if your router has it, and restart the router and the TV (unplug the TV for a minute). The TV may have a new IP address after a power cut.
Frequent questions
The app found the TV but says the connection was rejected. What do I do?
You probably tapped "No" on the TV prompt. Try again and accept. If the TV was reset, the app also needs to pair again.
Why did it work yesterday and not today?
The router may have given the TV a new IP address, or a firmware update reset the setting. Restart the TV and search for it again in the app.
Does it work with old LG TVs (NetCast)?
LG TVs from before 2014 use NetCast, an older system. Many current apps do not support it; on Android, an infrared app is the simplest option.