The loop works exactly as designed. Engagement is the only signal it can read, so engagement is the only thing it can maximise.
If you aren't building your own algorithm, your attention is being monetized for someone else's benefit. Custom software is how you take it back.