Totally agree with brother Irfan. In my humble opinion, if I may add. Just like women are advised not to wear tight or revealing clothes that reveal private area or show the form of private areas (Chest, hips and crotch), men are similarly and equally advised not to wear tight pants to reveal or show bulge in the crotch area.
Although Allah knows our body intimately and thus praying at home with such clothes may not nullify a prayer, but just from the aspect of Allah’s respect, we shouldn’t wear such clothes during prayer. In a mosques or public area wearing such clothes will go against the teachings of Islam too.