If you have taken the time to search the internet for “how to dress for a deposition,” then you are likely already half-way there to getting it right.
There are cultural and regional variations to this advice, of course. In the bible belt, a lawyer often tells his client to dress as though they are going to church. That may be good advice, but here in Arizona we have a lot of casual churches that accept golf shorts and jeans as acceptable attire.