Fat burners can be taken at different times depending on the type of supplement and its composition. Some of them are recommended to be taken before meals, others on an empty stomach, before training or even in the morning when you wake up.
It is advisable to consult the information on the supplement of interest on an individual basis. Fat burners with high levels of caffeine are not recommended for use close to sleep, as they can interfere with rest.