To setup your device mail client, you need to create an app password on Yahoo, in your account Info section (my mobile is a LG3) .
Sign into Yahoo Mail as you normally do on a Desktop Computer (can not do on a mobile device). Go to (top right). Help then Account Info . Scroll down to Sign- In...