Praise be to Allah.
It is permissible for a man to pray in a vest or undershirt if it is clean (taahir) and covers the ‘awrah. Men only have to cover the area between the navel and the knee when praying.
See the answer to question no. 103867.
This is with regard to the validity of the prayer.
But with regard to what is better and more perfect, it is better for the Muslim to adorn himself for prayer and to wear nice clothes, because Allah says (interpretation of the meaning):
“O Children of Adam! Take your adornment (by wearing your clean clothes) while praying”
And the Prophet (blessings and peace of Allah be upon him) said: “When one of you prays, let him wear his two garments, for Allah is more deserving that you should adorn yourself for Him.”
Narrated by al-Bayhaqi (2/235) and classed as saheeh by al-Albaani in al-Silsilah al-Saheehah (1369).
For more information please see the answer to question no. 68815.
And Allah knows best.