Auto burn function for every transaction

Hi solidity language experts, I need your help
Is it possible to make a function of smart contract where 1% buy fee equivalent of the token will be burned automatically from the total supply on every transaction? if possible then reply with function....
token supply 69trillion