How do you replace fuel sending unit gasket?

Yes the sending unit should come out and the seal ring installed over it to end up between the tank and senders base.