Ice is a plastic material the slowly deforms under its own weight.The ice flows around mountains that are in its way. Here you can see an example from northeast Greenland, where the glacier is hugging a ridge, nicely flowing around it.