に浮いている

is floating in or on

→ に
phrase Rare #45,771
is floating in or on に marks the place or surface where something is floating.
JA: 白い雲が夏の青空に浮いている。
EN: White clouds are floating in the blue summer sky.

空に浮いている島?

An island floating in the sky?

— 天空の城ラピュタ (1986)

何千という魚の死骸が湖に浮いているのが見つかった。

Thousands of dead fish were found floating in the lake.