For example, you can use a "layered" tablet structure, where the top layer contains the main substance, then hypromellose (hydroxypropyl methylcellulose) and polyethylene oxide with a molecular weight of 300000 to 700000, plus some excipients depending on the type of the main substance (magnesium stearate and the like), and in the bottom layer the same substances but in larger amounts. In this way, you can achieve a "delayed" release of the main substance.
In fact, there are many different compositions (such as polyacrylate particles) that help to realize this procedure. If you really want to do it, write to me - we'll be together.