Halve the beans, place in boiling salted water and cook for about 12 minutes. Then pour onto a sieve and drain. In the meantime, finely dice the onion. Wash the fish, pat dry and cut into slices. Drizzle with lemon juice, season with salt and place in the fridge.
Heat the oil. Steam the onion in it until translucent, dust with flour, sweat briefly and deglaze with stock while stirring. Stir in the crème légère, bring to the boil. Stir the mustard into the sauce. Season to taste with salt and pepper.
Put the beans in a baking dish. Drain the fish and place on the beans, spread the sauce evenly over the top.
Bake in a preheated oven (electric stove: 200 ° C / convection: 175 ° C) for 15-20 minutes. Garnish the gratin with lemon and dill if you like.