On android, I believe this can be done rootless via accessibility permissions that can display on top of apps