Can you please tell me which of the two is better?

a polka-dotted T-shirt or
a polka-dot T-shirt?

a polka-dotted T-shirt

Since polka-dotted is used as an adjective, this is the right phrase. Polka dot is a noun.