How do you say something is in the way?

Like something is in the way so you can't see

or something is in the way so you can't do something...