Samsung phone? Settings > Battery > Battery > Background usage limits > Never sleeping apps. Add Libretorrent there.
If you're on another brand of phone, there might be a slightly different place that you need to look. It's annoying, but you often have to disable sleep in more than one place.