With an airgapped hardware wallet like the Coldcard, you move an SD card with the partially signed Bitcoin transaction from the computer to the wallet, sign it there, and then move the SD card with the signed Bitcoin transaction back to the computer to broadcast to get mined.