Surgery is typically recommended for umbilical hernias that are larger in size, causing persistent pain or discomfort, or increasing in size over time. It is also advised for hernias that become trapped or incarcerated, leading to complications.