Caulk can help fill a gap that’s half an inch or less in width. If there are tiles on the wall, then try to find the caulk that’s similar to the grout’s color. Use sanded caulk for the gap larger than 1/8 inch in width, but regular caulk if it is less than that.