Mix softened butter, mayonnaise, garlic powder, and a pinch of salt together in a small bowl until creamy.
Toss shredded cheddar and gruyère cheeses together in a separate bowl to distribute flavors evenly.
Spread the butter-mayo mixture evenly onto one side of each bread slice.
Heat a heavy cast-iron skillet or nonstick griddle over medium-low heat.
Place two bread slices buttered-side down in the pan.
Pile shredded cheese blend evenly over bread; top with remaining bread slices buttered-side up.
Cook for 4 to 5 minutes until bottom bread is deep golden brown and crisp; cover pan with a lid for 1 minute to assist cheese melting.
Flip sandwich carefully with a flat spatula and cook second side for 3 to 4 minutes until golden and cheese is molten.
Transfer to a cutting board, rest for 1 minute, slice diagonally, and serve warm.