Supply nut stuck and fill valve spins when you loosen it
Hold the fill valve still from inside the tank while you turn the supply nut from below. One wrench holds the valve body steady, a second wrench turns the nut counterclockwise as seen from below. If the whole valve still turns with the nut, stop adding force and work the joint with cleaning and penetrating oil, then cut the nut if it will not move.
Someone fitting a bidet reported this stall with a metal supply nut. In that install the nut was locked tight under the tank, WD-40 did not free it, and the entire fill valve turned with the nut when force was applied. The fill valve is the tall valve inside the tank that refills the tank after a flush. The supply nut, also called the coupling nut, is the nut under the tank where the supply hose meets the threaded tail of that valve.
The bidet T goes on at that connection, so the nut has to come off first.
How do I hold the fill valve still?
Shut the water off at the wall valve behind the toilet and flush to drain the tank. Sponge out the water that remains. Have a bucket and towels under the joint for the water left in the hose.
Put one hand or a small wrench on the base of the fill valve inside the tank. Brace it firmly so it cannot rotate. Put a second wrench on the supply nut below the tank. The threaded tail under the tank is called the fill-valve shank. That shank can be plastic, and twisting it with a metal nut can split it.
Turn the nut counterclockwise as seen from below while the inside hold stays firm. Keep both tools square on the flats so they do not slip and round the nut. If the valve body starts turning again, reset the inside grip before you pull harder. Torque that twists the valve can twist the supply tube and crack the tank.
WD-40 did not free it: what works?
WD-40 is not a penetrating oil. A proper penetrating oil is a thin oil made to creep into rust and hardened deposits and loosen the bond between threads.
Brush loose rust and lime off the threads around the nut. Spray penetrating oil on the thread line where the nut meets the shank. Let it soak and reapply between tries. Tapping the side of the nut lightly helps vibration carry oil into the joint. Repeat the soak and tap cycle rather than moving to a bigger bar at once.
Try a small movement tighter first, then back counterclockwise to loosen. The goal is only a slight break in the bond. Once it shifts a little, work it back and forth in small turns with fresh oil until it runs free.
How do I break it free without cracking the tank?
Clean, soak, tap, then turn with two wrenches. That order matters because force on a dry and dirty joint only loads the plastic and the porcelain.
Keep the inside hold solid on every attempt. Do not pry the valve body against the tank wall for leverage. The porcelain can crack. Do not use heat from a torch around the tank. Plastic softens and the tank can crack.
Forcing a seized metal nut can round the nut flats, split the plastic shank, or crack the tank. Splitting the shank or cracking the tank can turn a bidet install into a valve or tank repair. If the valve keeps spinning even with a firm inside hold, that is the sign the joint is not going to release with hand force.
When do I stop and cut the nut?
Stop when the valve spins despite a firm hold, when the nut flats start to round, or when the shank flexes with the turn. More leverage past that point can break plastic and porcelain.
Cutting is the last resort. Slice one side of the metal nut with a hacksaw blade or an oscillating tool, a small power saw that vibrates its blade, shallow enough to leave the valve threads below untouched. Keep the blade off the porcelain tank. Then pry the cut apart gently with a small screwdriver until the nut splits. Plan on replacing the supply hose and, if its threads are damaged, the fill valve as well. Have those parts on hand before you cut so the toilet is not left open with stores closed.
If you cannot cut safely, stop and call a plumber.
What if I rent?
Leave the tank hardware alone if the nut will not move with a careful two-wrench hold and oil. Put the supply back as it was, set a container under any drip, and send a maintenance request before forcing or cutting anything. A cracked tank or a broken valve can flood and bill the tenant.