Here is a tip for surviving teamfights as a tank:
Focus your build on health, not resists. This is because it is easy for carries to get %armor pen and %mr pen.
A good late game mixed tank build would be like this:
This provides 2600 bonus hp, 110 bonus armor, and 150 bonus mr, which means you would have around 5k hp, 200 armor, and 200 mr, which is enough to tank.
/
or
and
is only optimal on a very few select champions.
. Paired with medium amount of armor and resistance works just great