When the last Bitcoin block is mined, how would transactions continue?
A misunderstanding. I do not know what leads you to believe that there will be a last block.

It is true that block rewards have a halving period and will eventually, in many years, reach zero, but, the transaction fees are also paid to the miner so mining will continue.